From f8019878d0e7be1586bac2883369ecc2c74f6098 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Sat, 17 Jan 2009 01:22:39 -0500 Subject: [PATCH] Don't run CSApproxImpl unless t_Co is sane. This was set up to allow CSApproxImpl() to run if either t_Co was set to 88 or 256, or if we were running in gui vim. Presumably this was added for CSApproxSnapshot, but that sets t_Co to something sane even in gvim. This was causing errors slightly later when t_Co was unset. --- plugin/CSApprox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/CSApprox.vim b/plugin/CSApprox.vim index cc2d5b0..b1a3876 100644 --- a/plugin/CSApprox.vim +++ b/plugin/CSApprox.vim @@ -670,7 +670,7 @@ endfunction " highlights (unless the colorscheme was already high-color). function! s:CSApproxImpl() " Return if not running in an 88/256 color terminal - if &t_Co != 256 && &t_Co != 88 && !has('gui_running') + if &t_Co != 256 && &t_Co != 88 if &verbose && !has('gui_running') echomsg "CSApprox skipped; terminal only has" &t_Co "colors, not 88/256" echomsg "Try checking :help csapprox-terminal for workarounds"