We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56e87bb commit e3d5b7dCopy full SHA for e3d5b7d
colors/challenger_deep.vim
@@ -76,9 +76,14 @@ let s:head_c = s:dark_cyan
76
77
" shamelessly stolen from hemisu: https://github.com/noahfrederick/vim-hemisu/
78
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
+ if g:challenger_deep_terminal_italics == 0
+ " Not all terminals support italics properly. If yours does, opt-in.
+ 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
87
endif
88
if g:challenger_deep_termcolors == 16
89
let l:ctermfg = (has_key(a:style, "fg") ? a:style.fg.cterm16 : "NONE")
0 commit comments