Bug #19357 2014-04-29 18:31

jakearkinstall

Caret style reverts to default upon brace completion.

I'm currently using a dark theme (Son of Oblivion, to be precise) in Codeblocks 12.11 on Linux Mint (so I'm not sure if this occurs in v13 - I'm using the default provided by the Ubuntu repositories). The cursor colour is set to white and has a width of 2px.

When typing a method name and opening a parenthesis, the closing parenthesis is automatically added and the caret is placed inbetween the two.

-------------------------

When this occurs, however, the caret style reverts to 1px, black (nearly invisible and rather impractical). This also happens with curly braces, square braces - but not for quotes or lt/gt symbols <>.

-------------------------

I presume the latter can be attributed to codeblocks' handling of C++ templates, as the method argument tooltip mistakes arguments with multiple c++ templates as multiple parameters (e.g. it thinks an argument of type std::map<unsigned, std::pair<double, double>> is actually three arguments, one of type std::map<unsigned, one of type std::pair<double and one of type double>>)

Upon opening the editor configuration window, the caret style is still listed as 2px white, and clicking OK changes the actual caret back to 2px white - clicking cancel keeps the caret as 1px black. Thus, a temporary bodge could be to reapply the editor settings upon brace completion, but it would of course be preferable to find out why this occurs.

Category
Application::Editor
Group
Platform:Linux
Status
Open
Close date
 
Assigned to
 
jakearkinstall 2014-04-29 18:33

Update: This problem does occur with single quotes, but not with double quotes.