mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +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))
|
-- print(vim.inspect(line))
|
||||||
if line ~= '' then
|
if line ~= '' then
|
||||||
if grepid ~= 0 then
|
if grepid ~= 0 then
|
||||||
|
-- change grepid to 0, and callback function will be skipped
|
||||||
|
grepid = 0
|
||||||
jobstop(grepid)
|
jobstop(grepid)
|
||||||
end
|
end
|
||||||
mpt._clear_prompt()
|
mpt._clear_prompt()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user