wetdesert / rad2py

Automatically exported from code.google.com/p/rad2py
GNU General Public License v3.0
0 stars 0 forks source link

Search result highlight breaks wx.STC styling #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the IDE (cd ide2py; python main.py)
2. Open python source file
3. Search some string found multiples times in the file

What is the expected output? What do you see instead?

Search results are correctly highlighted in the current visible text, but if 
 you scroll down, the following text has lost his python styling.

See HighlightText method of EditorCtrl(wx.stc.StyledTextCtrl):

http://code.google.com/p/rad2py/source/browse/ide2py/editor.py#959

In the attached image, see line 36 and bellow.

Original issue reported on code.google.com by reingart@gmail.com on 14 Feb 2012 at 8:34

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 5a7226c6295b.

Original comment by reingart@gmail.com on 14 Feb 2012 at 11:57

GoogleCodeExporter commented 9 years ago
Defered styling seems to be not called after SetStyle (thanks Robin Dunn for 
the clue)

Colourise(0, self.GetLength()) fixed the issue, forcing the lexer to style the 
text not visible yet

rev 5a7226c6295b

Original comment by reingart@gmail.com on 15 Feb 2012 at 12:00