From 5988674c15898be3f8cad35858e85b928bcb78d2 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Wed, 21 Jan 2009 19:32:31 -0500 Subject: [PATCH] Fix broken eterm/konsole detection on TERM=screen A typo - I used ==# where I meant =~# --- plugin/CSApprox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/CSApprox.vim b/plugin/CSApprox.vim index cbc4d42..d17ee31 100644 --- a/plugin/CSApprox.vim +++ b/plugin/CSApprox.vim @@ -793,7 +793,7 @@ function! s:CSApproxSnapshot(file, overwrite) if round == 'konsole' || round == 'eterm' let lines += [ 'elseif has("gui_running") || (&t_Co == ' . &t_Co - \ . ' && (&term ==# "xterm" || &term ==# "^screen")' + \ . ' && (&term ==# "xterm" || &term =~# "^screen")' \ . ' && exists("g:CSApprox_' . round . '")' \ . ' && g:CSApprox_' . round . ')' \ . ' || &term =~? "^' . round . '"' ]