1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-22 08:45:42 +08:00

Fix mapping guide event

closing plugin buffer should not send event
This commit is contained in:
wsdjeg 2017-06-03 16:11:55 +08:00
parent f2866af5a4
commit 89ce635d25

View File

@ -337,7 +337,6 @@ function! s:handle_input(input) " {{{
call s:start_buffer() call s:start_buffer()
else else
let s:prefix_key_inp = '' let s:prefix_key_inp = ''
doautocmd WinEnter
call feedkeys(s:vis.s:reg.s:count, 'ti') call feedkeys(s:vis.s:reg.s:count, 'ti')
redraw! redraw!
try try
@ -428,7 +427,7 @@ endfunction
function! s:winclose() " {{{ function! s:winclose() " {{{
noautocmd execute s:gwin.'wincmd w' noautocmd execute s:gwin.'wincmd w'
if s:gwin == winnr() if s:gwin == winnr()
close noautocmd close
redraw! redraw!
exe s:winres exe s:winres
let s:gwin = -1 let s:gwin = -1