From e818184215824c7627792d958222f5d13cfb03a9 Mon Sep 17 00:00:00 2001 From: livelazily Date: Sat, 25 Jun 2016 22:55:16 +0800 Subject: [PATCH 1/2] support 24-bit color --- autoload/search_pulse.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/search_pulse.vim b/autoload/search_pulse.vim index cb9839b..52f6426 100644 --- a/autoload/search_pulse.vim +++ b/autoload/search_pulse.vim @@ -20,7 +20,7 @@ func! s:ScrubPattern(s) endf func! s:Initialize() - let gui_running = has('gui_running') + let gui_running = has('gui_running') || (&termguicolors == 1) " Color list: " http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim From dcfd20ec24dcf479bfcbc4af18ee922e29df16c7 Mon Sep 17 00:00:00 2001 From: livelazily Date: Thu, 30 Jun 2016 10:02:37 +0800 Subject: [PATCH 2/2] check has('termguicolors') before calling &termguicolors --- autoload/search_pulse.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/search_pulse.vim b/autoload/search_pulse.vim index 52f6426..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') || (&termguicolors == 1) + 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