From 23758a33839e21940a101f5753f9085b9fe7bf1d Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 19 Jun 2023 15:36:48 +0800 Subject: [PATCH] fix(flygrep): skip callback when close buffer --- lua/spacevim/plugin/flygrep.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/spacevim/plugin/flygrep.lua b/lua/spacevim/plugin/flygrep.lua index 5b887a7f5..0d66effd5 100644 --- a/lua/spacevim/plugin/flygrep.lua +++ b/lua/spacevim/plugin/flygrep.lua @@ -317,6 +317,7 @@ end local function close_buffer() if grepid > 0 then + grepid = 0 jobstop(grepid) end timer_stop(grep_timer_id)