Don't run undojoin before each setline() call

This commit is contained in:
Kim Silkebækken 2011-03-30 10:43:51 +02:00
parent 4a2cb09228
commit f24a54d798

View File

@ -135,13 +135,13 @@
endif
endfunction " }}}
function! s:SetLines(lines, key) " {{{
for [line_num, line] in a:lines
try
" Try to join changes with previous undo block
undojoin
catch
endtry
try
" Try to join changes with previous undo block
undojoin
catch
endtry
for [line_num, line] in a:lines
call setline(line_num, line[a:key])
endfor
endfunction " }}}