Unlike the other functions, youcompleteme#EnableCursorMovedAutocommands and youcompleteme#DisableCursorMovedAutocommands are not overwriting. This causes an error if the file is reloaded.

This commit is contained in:
Spencer G. Jones 2014-10-14 11:08:47 -06:00
parent 87b42c6893
commit ac3a48de70

View File

@ -92,7 +92,7 @@ function! youcompleteme#Enable()
endfunction endfunction
function youcompleteme#EnableCursorMovedAutocommands() function! youcompleteme#EnableCursorMovedAutocommands()
augroup ycmcompletemecursormove augroup ycmcompletemecursormove
autocmd! autocmd!
autocmd CursorMovedI * call s:OnCursorMovedInsertMode() autocmd CursorMovedI * call s:OnCursorMovedInsertMode()
@ -101,7 +101,7 @@ function youcompleteme#EnableCursorMovedAutocommands()
endfunction endfunction
function youcompleteme#DisableCursorMovedAutocommands() function! youcompleteme#DisableCursorMovedAutocommands()
autocmd! ycmcompletemecursormove CursorMoved * autocmd! ycmcompletemecursormove CursorMoved *
autocmd! ycmcompletemecursormove CursorMovedI * autocmd! ycmcompletemecursormove CursorMovedI *
endfunction endfunction