Menu

#267 Any change of a foreground syntax highlighting color to "default" reverts all foreground colors to default scheme

Undefined
fixed
Bug_Report
2021-07-01
2015-12-01
No

Bug found on: Code::blocks 13.12 rev. 9501
OS: windows 7 x64 SP1

Changing any foreground syntax highlighting color (Settings -> Editor... -> Syntax Highlighting) to "default", either by pressing the D button or clicking the color button and choosing the default color from the color box, DOES change text color highlighting for the current session, BUT all colors are reverted to their default scheme values when the IDE is closed and reopened: seems that the color scheme is not correctly saved.

Note: any background color change, default or not, saves correctly: the bug affects only foreground color changes.

Note 2: if you change foreground colors (not to "default"), save, close, reopen codeblocks (color scheme correctly saved) and then change any foreground color to "default", save, close, reopen codeblocks, the color scheme reverts to the original default scheme coming with codeblocks and not to the color scheme just saved.

Note 3: creating other color schemes does not solve the problem, the bug affects every color scheme.

Discussion

  • ollydbg

    ollydbg - 2015-12-06

    13.12 version is quite old. Can you see whether this issue happens in the latest nightly build revision? Thanks.

     
  • Dimitry Sibiryakov

    I can confirm that this problem exists in current trunk for matching/unmatching brackets hightlight scheme (at least). Default background and foreground are not normally applied because these styles are excluded from apply list. Opening and closing of syntax highlight settings window set them somehow.

    Attached patch seems to solve this problem.

     

    Last edit: Dimitry Sibiryakov 2018-12-14
  • Dimitry Sibiryakov

    This issue should be resolved by commit 11930.

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-06
    • status: open --> fixed
    • assigned_to: Teodor Petrov
     
  • Teodor Petrov

    Teodor Petrov - 2020-02-06

    Thanks for testing

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-06
    • labels: --> editor, syntax highlighting
     
  • Dimitry Sibiryakov

    I'm sorry to disturb you but this fix seems to be missed in release 20.03. Is it intended?

     
  • Teodor Petrov

    Teodor Petrov - 2021-07-01

    Probably the fix happened too late for the release. You can use a night build or apply the patch and rebuild.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.