diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-05-31 20:52:04 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-05-31 20:52:04 +0200 | 
| commit | b2be47befcba7c2e4ae1261e4baf0fc2e7db07d8 (patch) | |
| tree | fdef2e8c7ecc908d4580a126cbe8a1de49e10bea /autoload/csv.vim | |
| parent | de38ccabbd64e6b3354917a89e37d36407356a61 (diff) | |
| download | vim-polyglot-b2be47befcba7c2e4ae1261e4baf0fc2e7db07d8.tar.gz vim-polyglot-b2be47befcba7c2e4ae1261e4baf0fc2e7db07d8.zip | |
Update
Diffstat (limited to 'autoload/csv.vim')
| -rw-r--r-- | autoload/csv.vim | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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) | 
