forked from VimPlug/jedi-vim
Fix obscure undojoin bug
This commit is contained in:
@@ -204,7 +204,11 @@ function! s:save_first_col()
|
|||||||
" new line, substitude a word), join that change with the rest of this
|
" new line, substitude a word), join that change with the rest of this
|
||||||
" edit.
|
" edit.
|
||||||
if b:normaltick != b:changedtick
|
if b:normaltick != b:changedtick
|
||||||
undojoin
|
try
|
||||||
|
undojoin
|
||||||
|
catch /^Vim\%((\a\+)\)\=:E790/
|
||||||
|
" This can happen if an undo happens during a :normal command.
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user