TrailingSpaces icon indicating copy to clipboard operation
TrailingSpaces copied to clipboard

Unable to change the highlighting color via `highlight_color`

Open davidhcefx opened this issue 1 year ago • 0 comments

Description

  • According to your instruction, I should be able to change the highlighting color through the "highlight_color" config.
  • However, setting it to any value failed to work. Including:
    • #fff
    • region.greenish
    • region.yellowish
  • I discovered that every time I invoked Toggle Trailing Spaces Highlight, the config will be overwritten to "highlight_color": "region.redish"
  • It seems that line 371 is doing something nasty.
    • Why do it need to change the user's settings? If it alter the user's settings, can it change it back? What if Sublime were exited before the changes being reverted?

https://github.com/SublimeText/TrailingSpaces/blob/ff346295821db00d8d1c1ece0feddec8d6414c81/trailing_spaces.py#L360-L374

  • Other issues with the same cause:
    • #160
    • #65

davidhcefx avatar Jan 26 '24 09:01 davidhcefx