GNOME Bugzilla – Bug 357534
syntax coloring fails and breaks selection display
Last modified: 2009-08-15 18:40:50 UTC
Please describe the problem: I'm using the Scintilla editor. If I choose a custom color for displaying comments, then my color is ignored: comments appear in black. Furthermore, any text I select is displayed as an unreadable black rectangle. Steps to reproduce: 1. View a source file in the Scintilla editor. 2. Choose Settings / Preferences. 3. On the left-hand side of the Preferences dialog, choose Scintilla Editor. 4. Press the Colors & Fonts button. 5. In the "Select highlight style to edit" box, choose Comments. 6. The "Fore color" button will appear red (assuming you have the default coloring scheme). Click it and choose a different color. 7. Press OK and close the Preferences dialog. Actual results: Comments are now displayed in black. If I select any text, the selection appears as an unreadable black rectangle. Expected results: Comments should be displayed in the color I chose. Does this happen every time? Yes. Other information: This worked until a few days ago, so something must have gotten broken recently.
Created attachment 73879 [details] [review] bug fix Here's a fix, which was straightforward: we recently changed anjuta_util_string_from_color() and forgot to update a few calls to it.
Thanks for the patch!
Closing all fixed bugs. Sorry for the mass update :( ...