From d28a1791ea0dcd4c9daf7b16cb819093f611951f Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Tue, 3 Mar 2009 21:43:31 -0500 Subject: [PATCH] Handle functions that return a:lines The logic to clear a:lines and replace it with the return of the function failed pretty miserably when the function returned a:lines. It cleared a:lines and then replaced it with the (now empty) elements. --- autoload/tabular.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tabular.vim b/autoload/tabular.vim index 9a8ef48..a10ee0c 100644 --- a/autoload/tabular.vim +++ b/autoload/tabular.vim @@ -139,7 +139,7 @@ endfunction function! s:FilterString(lines, commandstring) exe 'let rv = ' . a:commandstring - if type(rv) == type(a:lines) + if type(rv) == type(a:lines) && rv isnot a:lines call filter(a:lines, 0) call extend(a:lines, rv) endif