Fix calling setline on wrong line in reindent
This commit is contained in:
parent
0ae5d5ea99
commit
d91ebdd797
@ -75,7 +75,7 @@ function! s:reindent(start, lines, new_indent)
|
||||
let line = getline(lnum)
|
||||
execute "silent normal! " . lnum . "G=="
|
||||
let new_indent = matchstr(getline(lnum), '^\s*')
|
||||
call setline(a:start, line)
|
||||
call setline(lnum, line)
|
||||
else
|
||||
let new_indent = a:new_indent
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user