Sublime Forum

Selection highlight clears font style?

#1

Hi,

I am not sure if I am missing a theme setting for this, or if it is a bug in the highlighting, but it appears that selections remove font styles like italics. I have comments set to be italic in my theme with

<dict> <key>name</key> <string>Comment</string> <key>scope</key> <string>comment</string> <key>settings</key> <dict> <key>fontStyle</key> <string>italic</string> <key>foreground</key> <string>#586E75</string> </dict> </dict>

But when selecting text that contains a comment, the comment is rendered normal inside the selection highlight.

0 Likes

#2

I noticed it only happens when the theme also sets selectionForeground. I guess when it strips away the colors it also mistakenly removes the style.

0 Likes