diff --git a/colors/dracula.vim b/colors/dracula.vim index 74fbe18..e169d62 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -156,6 +156,14 @@ execute join(l:hl_string, ' ') endfunction +function! s:Background() + if g:dracula_colorterm || has("gui_running") + return s:bg + else + return s:none + endif +endfunction + "}}}2 " Dracula Highlight Groups: {{{2 @@ -225,7 +233,7 @@ " Core: {{{2 set background=dark -call s:h('Normal', s:fg, g:dracula_colorterm == 1 ? s:bg : s:none) +call s:h('Normal', s:fg, s:Background()) hi! link Visual DraculaSelection hi! link VisualNOS Visual