Skip to content

Commit

Permalink
fix(plugin): check mode for FocusGained, fix #1064
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Aug 5, 2019
1 parent 6ef231f commit 9baac0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54561,7 +54561,7 @@ class Plugin extends events_1.EventEmitter {
return false;
}
get version() {
return workspace_1.default.version + ( true ? '-' + "047b16d6e6" : undefined);
return workspace_1.default.version + ( true ? '-' + "1b48fa6643" : undefined);
}
async showInfo() {
if (!this.infoChannel) {
Expand Down
2 changes: 1 addition & 1 deletion plugin/coc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function! s:Enable()
autocmd BufNewFile,BufReadPost, * call s:Autocmd('BufCreate', +expand('<abuf>'))
autocmd BufUnload * call s:SyncAutocmd('BufUnload', +expand('<abuf>'))
autocmd BufWritePre * call s:SyncAutocmd('BufWritePre', +expand('<abuf>'))
autocmd FocusGained * call s:Autocmd('FocusGained')
autocmd FocusGained * if mode() !~# '^c' | call s:Autocmd('FocusGained') | endif
autocmd VimResized * call s:Autocmd('VimResized', &columns, &lines)
autocmd VimLeavePre * let g:coc_vim_leaving = 1
autocmd VimLeave * call coc#rpc#stop()
Expand Down

0 comments on commit 9baac0c

Please sign in to comment.