mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 07:40:05 +08:00
Close job/timer when close flygrep buffer
This commit is contained in:
parent
006535b27f
commit
df6c1a1c82
@ -49,6 +49,12 @@ endfunction
|
|||||||
let s:MPT._handle_fly = function('s:flygrep')
|
let s:MPT._handle_fly = function('s:flygrep')
|
||||||
|
|
||||||
function! s:close_buffer() abort
|
function! s:close_buffer() abort
|
||||||
|
if s:grepid != 0
|
||||||
|
call s:JOB.stop(s:grepid)
|
||||||
|
endif
|
||||||
|
if s:grep_timer_id != 0
|
||||||
|
call timer_stop(s:grep_timer_id)
|
||||||
|
endif
|
||||||
q
|
q
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user