Leaving omnifunc mode on InsertLeave
This commit is contained in:
parent
2667a82441
commit
0ea218022a
@ -44,6 +44,7 @@ function! youcompleteme#Enable()
|
||||
" initial file.
|
||||
autocmd BufRead,BufEnter * call s:OnBufferVisit()
|
||||
autocmd CursorHold,CursorHoldI * call s:OnCursorHold()
|
||||
autocmd InsertLeave * call s:OnInsertLeave()
|
||||
augroup END
|
||||
|
||||
" We need menuone in completeopt, otherwise when there's only one candidate
|
||||
@ -127,6 +128,10 @@ function! s:OnMovedI()
|
||||
endfunction
|
||||
|
||||
|
||||
function! s:OnInsertLeave()
|
||||
let s:omnifunc_mode = 0
|
||||
endfunction
|
||||
|
||||
function! s:IdentifierFinishedOperations()
|
||||
if !pyeval( 'ycm.CurrentIdentifierFinished()' )
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user