Skip to content

Commit 93b29a3

Browse files
rootiestlewis6991
authored andcommitted
fix: explicitly set border to 'none' when separator is not used
This prevents unpreferable behavior if vim.o.winborder is changed.
1 parent 83ded3b commit 93b29a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/treesitter-context/render.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ local function display_window(winid, context_winid, width, height, col, ty, hl)
7373
style = 'minimal',
7474
noautocmd = true,
7575
zindex = config.zindex,
76-
border = sep and { '', '', '', '', sep, sep, sep, '' } or nil,
76+
border = sep and { '', '', '', '', sep, sep, sep, '' } or 'none',
7777
})
7878
vim.w[context_winid][ty] = true
7979
vim.wo[context_winid].wrap = false

0 commit comments

Comments
 (0)