Fix obscure undojoin bug

This commit is contained in:
Jacob Niehus
2014-10-31 19:09:54 -07:00
parent fb1eaa611e
commit 9ea98e2e81

View File

@@ -204,7 +204,11 @@ function! s:save_first_col()
" new line, substitude a word), join that change with the rest of this
" edit.
if b:normaltick != b:changedtick
try
undojoin
catch /^Vim\%((\a\+)\)\=:E790/
" This can happen if an undo happens during a :normal command.
endtry
endif
endtry
endfunction