Permalink
Browse files

fix small bugs with :CSVTable command

  • Loading branch information...
1 parent b044740 commit 1004a31ced7df7d57ecd85641a277be6362d0f89 @chrisbra committed Jul 1, 2016
Showing with 4 additions and 3 deletions.
  1. +4 −3 plugin/csv.vim
View
@@ -73,10 +73,11 @@ fu! <sid>Table(bang, line1, line2, delim)
unlet! b:col_width b:csv_list
catch
finally
+ " move back to previous window
+ noa wincmd p
if !empty(indent)
- " Added one line above a:line1 and several lines below, so need to
- " correct the range
- exe printf(':sil %d,%ds/^/%s/e', (line1 - 1), (line2 + line('$') - last), indent)
+ " undo removing the indent
+ u
endif
if has("conceal")
let [ &l:lz, &l:syntax, &l:ft, &l:sol, &l:tw, &l:wrap, &l:cole, &l:cocu, &l:fen, &l:fdm, &l:fdl, &l:fdc, &l:fml, &l:fdt, &l:ma, &l:ml] = _a

0 comments on commit 1004a31

Please sign in to comment.