1
0
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:
wsdjeg 2023-06-18 20:53:47 +08:00
parent 695d0dbcd2
commit 5f20e4710b

View File

@ -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()