Selecting Language fromt the menu bar make the color scheme to go wild

Bug #1192305 reported by Daniele "OpenNingia" Simonetti
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Notepadqq [MOVED TO GITHUB]
Fix Committed
Undecided
Justin Kinnaird

Bug Description

* Use a custom styler.xml file with your favorite color scheme
* Open any file, e.g. main.cpp
* Observe that it gets correct syntax highlight and colors
* Hit Language -> C -> C++ from menu

What to expect:
nothing changes:

What happens instead:
the color scheme is completely messed up.

screenshots attached

Revision history for this message
Daniele "OpenNingia" Simonetti (oppifjellet) wrote :
Revision history for this message
Daniele "OpenNingia" Simonetti (oppifjellet) wrote :
Changed in notepadqq:
status: New → Confirmed
Revision history for this message
Justin Kinnaird (teklad) wrote :

I just added a pull request that has the fix for this issue in place.... Sometimes direct function usage == bad. :)

Changed in notepadqq:
status: Confirmed → Fix Committed
assignee: nobody → Justin Kinnaird (teklad)
Revision history for this message
Daniele "OpenNingia" Simonetti (oppifjellet) wrote :

Now it's better, however there are still some glitches ( like the margin, folding, line number column that changes color )

Revision history for this message
Justin Kinnaird (teklad) wrote :

From what I can see the margins font isn't getting updated on subsequent lexer changes. My guess is the margin font changing when the lexer changes is probably a Qscintilla quirk. Easy enough to work around though.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.