Commit 31fcf2f
Fix hasTextHighlighting to check for "none" string
Since 1edf415, highlight-style: none sets "none" string instead of null.
The ?? operator and null check didn't catch this, causing hasTextHighlighting
to incorrectly return true when highlighting was disabled.
- Use || fallback (consistent with hasAdaptiveTheme, readHighlightingTheme)
- Check for "none" string instead of null
- Remove unreachable null check (|| chain always provides default)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 6480394 commit 31fcf2f
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
0 commit comments