mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 21:43:49 -05:00
Revert "Check changes for focus event, improves #638"
It's because it additionally changes cursor to vertical bar.
I need to disable this behavior and make it compatible with
plugins that enable vertical cursor...
This reverts commit 44e79fc935.
This commit is contained in:
@@ -13,22 +13,6 @@ if exists('g:loaded_sensible')
|
||||
finish
|
||||
endif
|
||||
|
||||
if !has('gui_running') && (!has('nvim') || $TERM =~? '^rxvt')
|
||||
let g:focau = extend({
|
||||
\ 'auto': 1,
|
||||
\ 'active': 1,
|
||||
\ 'events' : {'<F25>': "\e[I", '<F26>': "\e[O"},
|
||||
\ 'focuses': ["\e[?1004h", "\e[?1004l"],
|
||||
\ 'screens': ["\e[?1049h", "\e[?1049l"],
|
||||
\ 'cursors': ['', '', ''],
|
||||
\ 'colors' : ['white', 'cyan'],
|
||||
\ 'widgets': [],
|
||||
\ 'clipregs':['+"p', '"+'],
|
||||
\}, get(g:, 'focau', {}))
|
||||
|
||||
call focau#init#main()
|
||||
endif
|
||||
|
||||
" Code taken from https://github.com/tpope/vim-sensible
|
||||
" and (mostly comments) from https://github.com/sheerun/vimrc
|
||||
"
|
||||
@@ -90,7 +74,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -
|
||||
if match(capture, 'checktime') == -1
|
||||
augroup polyglot-sensible
|
||||
au!
|
||||
au CursorHold,FocusGained * silent! checktime
|
||||
au CursorHold * silent! checktime
|
||||
augroup END
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user