[Bug 74893] "Highlight matching bracket" option doesn't highlight brackets with more than 2000 characters between them

Richard Gobeille terminx at gmail.com
Thu Dec 7 23:34:16 UTC 2006


Public bug reported:

gedit fails to highlight matching brackets which have more than 2000
characters between them.  If I have a long-ish block of code in which
the opening and closing brackets are greater than 2000 characters apart,
I'm unable to leave the input cursor sitting next to one and have the
other be highlighted when I scroll to it.  If they are less than 2000
characters apart, things work as expected.

Steps to reproduce:

1) Open gedit
2) Enable the "highlight matching bracket" option in preferences
3) Insert a "{" on line 1
4) Insert 2000 characters of your choice, followed by a "}"
5) Leave the cursor next to one of the brackets and then scroll to the other bracket.  The bracket will not be highlighted.  If you remove a character and repeat, the bracket will be highlighted as expected.

Seems like this is a simple fix.

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
"Highlight matching bracket" option doesn't highlight brackets with more than 2000 characters between them
https://launchpad.net/bugs/74893




More information about the desktop-bugs mailing list