Skip to content

Commit f751502

Browse files
committed
Related to #88 - Blocked windows should not default to global ns
1 parent 5cc0f84 commit f751502

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/vimade/highlighters/namespace.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ M.highlight = function(win, redraw)
239239
end
240240

241241
M.unhighlight = function(win)
242-
if win.current_ns ~= win.real_ns then
242+
if win.current_ns ~= win.real_ns and win.real_ns then
243243
win.current_ns = win.real_ns
244244
COMPAT.nvim_win_set_hl_ns(win.winid, win.current_ns)
245245
end

lua/vimade/state/win.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ M.__create = function (winid)
9292
active_buf = 0,
9393
nc = 0,
9494
},
95-
real_ns = 0,
95+
real_ns = nil,
9696
ns = nil,
9797
state = GLOBALS.READY,
9898
style = {},

0 commit comments

Comments
 (0)