Skip to content

Commit 3671ab0

Browse files
authored
fix(ui): only set border to none if 'winborder' doesn't exist (#1984)
1 parent a1fbecc commit 3671ab0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lua/mason/ui/instance.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,8 @@ end
740740

741741
local border = settings.current.ui.border
742742

743-
if border == nil then
744-
if vim.fn.has "nvim-0.11" == 1 then
745-
border = vim.o.winborder
746-
else
747-
border = "none"
748-
end
743+
if border == nil and vim.fn.exists "&winborder" == 0 then
744+
border = "none"
749745
end
750746

751747
window.init {

0 commit comments

Comments
 (0)