If "virtual spaces" option (Edit->Preferences->Editor->Display)is set to "always", the caret may be positioned behind the end-of-line. If the line ends with a brace, it is highlighted if the caret is at the brace, *or* far behind the brace, e. g.:
if ( ... ) { |
If the caret is moving right, the brace flickers: highlighting disappears for a moment, then appears again.
Proposed patch for Geany 1.32 solves the problem: the brace is highlighted only if the caret is before or at the brace; if the caret is behind the end-of-line, the brace is not highlighted.
[geany-1.32-highlight-braces.vdb.patch.txt](https://github.com/geany/geany/files/1709175/geany-1.32-highlight-braces.vdb...)
Please open a pull request on github so it can be discussed. I am not sure this is the right way to fix it. Probably better to not turn the highlight off until the end of the timeout.
Cheers Lex
On 9 February 2018 at 09:12, van-de-bugger notifications@github.com wrote:
Proposed patch for Geany 1.32 solves the problem: the brace is highlighted only if the caret is before or at the brace; if the caret is behind the end-of-line, the brace is not highlighted.
geany-1.32-highlight-braces.vdb.patch.txt https://github.com/geany/geany/files/1709175/geany-1.32-highlight-braces.vdb.patch.txt
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geany/geany/issues/1764#issuecomment-364280915, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxgTf2wdiS4SN9nln_GGOK2ge8WnI56ks5tS39fgaJpZM4R_K_q .
github-comments@lists.geany.org