From b2be47befcba7c2e4ae1261e4baf0fc2e7db07d8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 31 May 2020 20:52:04 +0200 Subject: Update --- autoload/csv.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload/csv.vim') diff --git a/autoload/csv.vim b/autoload/csv.vim index 28d85b63..a86e0b2d 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -267,7 +267,7 @@ fu! csv#GetPat(colnr, maxcolnr, pat, allowmore) "{{{3 " Allow space in front of the pattern, so that it works correctly " even if :Arrange Col has been used #100 return '^' . csv#GetColPat(a:colnr - 1,0) . - \ '\s*\zs' . a:pat . '\ze' . (a:allowmore ? '' : '$') + \ '.*\zs' . a:pat . '\ze' . (a:allowmore ? '' : '$') else return '\%' . b:csv_fixed_width_cols[-1] . \ 'c\zs' . a:pat . '\ze' . (a:allowmore ? '' : '$') @@ -504,7 +504,7 @@ fu! csv#WColumn(...) "{{{3 " Return on which column the cursor is let _cur = getpos('.') if !exists("b:csv_fixed_width_cols") - if line('.') > 1 && mode('') != 'n' + if line('.') > 1 && mode('') != 'n' && empty(getline('.')[0:col('.')-1]) " in insert mode, get line from above, just in case the current " line is empty let line = getline(line('.')-1) -- cgit v1.2.3