mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-13 13:39:09 +08:00
fix(flygrep): skip callback function after close buffer
This commit is contained in:
parent
695d0dbcd2
commit
5f20e4710b
@ -382,6 +382,8 @@ local function open_item(...)
|
||||
-- print(vim.inspect(line))
|
||||
if line ~= '' then
|
||||
if grepid ~= 0 then
|
||||
-- change grepid to 0, and callback function will be skipped
|
||||
grepid = 0
|
||||
jobstop(grepid)
|
||||
end
|
||||
mpt._clear_prompt()
|
||||
|
Loading…
x
Reference in New Issue
Block a user