Skip to content

Commit 961b866

Browse files
committed
Lua: Fix terminal match not removed when VimadeDisable used
1 parent f3da7ab commit 961b866

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/vimade/state/win.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ M.unhighlight = function (winid)
4646
local win = M.cache[winid]
4747
if win then
4848
win.nc = false
49+
-- TODO this should just be moved into handle_terminal
50+
if win.terminal_match then
51+
vim.fn.matchdelete(win.terminal_match, winid)
52+
win.terminal_match = nil
53+
end
4954
end
5055
end
5156

0 commit comments

Comments
 (0)