Merge pull request #1216 from mispencer/AutoCommandNotReloadable

xCursorMovedAutocommands are not overwriting
This commit is contained in:
Val Markovic 2014-10-14 11:59:08 -07:00
commit 2d6c18e86d

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