Skip to content

Commit

Permalink
Do not remove Tabs on :UnArrangeColumn
Browse files Browse the repository at this point in the history
fixes #98
  • Loading branch information
chrisbra committed Nov 28, 2016
1 parent c2b5a86 commit 1745371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -83,6 +83,8 @@
- Make `:AddColumn_CSV` work as expected
- Add `:DupColumn` command (suggested by lkraav in
https://github.com/chrisbra/csv.vim/issues/84, thanks!)
- Do not remove tabs on `:UnArrangeColumn` (reported by taylor-peterson in
https://github.com/chrisbra/csv.vim/issues/98, thanks!)

## 0.31 Jan 15, 2015
- supports for Vim 7.3 dropped
Expand Down
2 changes: 1 addition & 1 deletion ftplugin/csv.vim
Expand Up @@ -709,7 +709,7 @@ fu! <sid>PrepUnArrangeCol(first, last) "{{{3
endfu
fu! <sid>UnArrangeCol(match) "{{{3
" Strip leading white space, also trims empty records:
return substitute(a:match, '\%(^\s\+\)\|\%(\s\+\ze'.b:delimiter. '\?$\)', '', 'g')
return substitute(a:match, '\%(^ \+\)\|\%( \+\ze'.b:delimiter. '\?$\)', '', 'g')
endfu
fu! <sid>CalculateColumnWidth(row) "{{{3
" Internal function, not called from external,
Expand Down

0 comments on commit 1745371

Please sign in to comment.