GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Style bitmask not cleared completely when switching lexers dynamically #451

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When switching between lexers that require changing the bitmask from 5 to 7
or visa versa it is not cleared correctly. For example switching from
Python to XML mode. Which leads to coloring issues.

Original issue reported on code.google.com by CodyPrec...@gmail.com on 30 Dec 2009 at 8:25

GoogleCodeExporter commented 9 years ago
Only happens when a Lexer other than NULL was previously set in the instance of 
the
buffer object. If the default lexer is Plain Text  then changing to xml works 
fine.

Appears to be a bug/limitation in the control no combination of clearing styles
before resetting the styles or style byte settings seems to have no affect.

May need to destroy the control and replace it with a new instance to work 
around this.

Original comment by CodyPrec...@gmail.com on 20 Jan 2010 at 3:39