mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
fix(incsearch): use noautocmd to avoid incsearch_nohlsearch key
This commit is contained in:
parent
a44b1be345
commit
48dfd5d179
@ -46,14 +46,16 @@ let s:protocol = ''
|
|||||||
let s:chatting_commands = ['/set_protocol', '/set_channel']
|
let s:chatting_commands = ['/set_protocol', '/set_channel']
|
||||||
let s:all_protocols = ['gitter']
|
let s:all_protocols = ['gitter']
|
||||||
function! chat#windows#open() abort
|
function! chat#windows#open() abort
|
||||||
|
" "\<Plug>(_incsearch-nohlsearch)" will be send to vim on CursorMoved event,
|
||||||
|
" so use noautocmd to avoid this issue
|
||||||
if bufwinnr(s:name) < 0
|
if bufwinnr(s:name) < 0
|
||||||
if bufnr(s:name) != -1
|
if bufnr(s:name) != -1
|
||||||
exe 'silent! botright split ' . '+b' . bufnr(s:name)
|
exe 'silent! noautocmd botright split ' . '+b' . bufnr(s:name)
|
||||||
else
|
else
|
||||||
exe 'silent! botright split ' . s:name
|
exe 'silent! noautocmd botright split ' . s:name
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
exec bufwinnr(s:name) . 'wincmd w'
|
noautocmd exec bufwinnr(s:name) . 'wincmd w'
|
||||||
endif
|
endif
|
||||||
call s:windowsinit()
|
call s:windowsinit()
|
||||||
call s:init_hi()
|
call s:init_hi()
|
||||||
|
Loading…
Reference in New Issue
Block a user