Skip to content

Commit e3d5b7d

Browse files
authored
Disable italics on GUI (#22)
1 parent 56e87bb commit e3d5b7d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

colors/challenger_deep.vim

+8-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,14 @@ let s:head_c = s:dark_cyan
7676

7777
" shamelessly stolen from hemisu: https://github.com/noahfrederick/vim-hemisu/
7878
function! s:h(group, style)
79-
" Not all terminals support italics properly. If yours does, opt-in.
80-
if g:challenger_deep_terminal_italics == 0 && has_key(a:style, "cterm") && a:style["cterm"] == "italic"
81-
unlet a:style.cterm
79+
if g:challenger_deep_terminal_italics == 0
80+
" Not all terminals support italics properly. If yours does, opt-in.
81+
if get(a:style, "cterm", "") == "italic"
82+
unlet a:style.cterm
83+
endif
84+
if get(a:style, "gui", "") == "italic"
85+
unlet a:style.gui
86+
endif
8287
endif
8388
if g:challenger_deep_termcolors == 16
8489
let l:ctermfg = (has_key(a:style, "fg") ? a:style.fg.cterm16 : "NONE")

0 commit comments

Comments
 (0)