Merge pull request #40 from wilywampa/fix_setline

Fix calling setline on wrong line in reindent
This commit is contained in:
Tom McDonald 2015-09-07 22:05:13 -04:00
commit 9373a8471c

View File

@ -75,7 +75,7 @@ function! s:reindent(start, lines, new_indent)
let line = getline(lnum) let line = getline(lnum)
execute "silent normal! " . lnum . "G==" execute "silent normal! " . lnum . "G=="
let new_indent = matchstr(getline(lnum), '^\s*') let new_indent = matchstr(getline(lnum), '^\s*')
call setline(a:start, line) call setline(lnum, line)
else else
let new_indent = a:new_indent let new_indent = a:new_indent
endif endif