Don't run undojoin before each setline() call
This commit is contained in:
parent
4a2cb09228
commit
f24a54d798
@ -135,13 +135,13 @@
|
|||||||
endif
|
endif
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
function! s:SetLines(lines, key) " {{{
|
function! s:SetLines(lines, key) " {{{
|
||||||
for [line_num, line] in a:lines
|
try
|
||||||
try
|
" Try to join changes with previous undo block
|
||||||
" Try to join changes with previous undo block
|
undojoin
|
||||||
undojoin
|
catch
|
||||||
catch
|
endtry
|
||||||
endtry
|
|
||||||
|
|
||||||
|
for [line_num, line] in a:lines
|
||||||
call setline(line_num, line[a:key])
|
call setline(line_num, line[a:key])
|
||||||
endfor
|
endfor
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user