diff --git a/autoload/search_pulse.vim b/autoload/search_pulse.vim index cb9839b..8fd9aca 100644 --- a/autoload/search_pulse.vim +++ b/autoload/search_pulse.vim @@ -20,7 +20,12 @@ func! s:ScrubPattern(s) endf func! s:Initialize() - let gui_running = has('gui_running') + let gui_running = 0 + if has('gui_running') + let gui_running = 1 + elseif has('termguicolors') + let gui_running = &termguicolors == 1 + endif " Color list: " http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim