From 271dc2ba3e8625e4d284ae016f358021635de2fd Mon Sep 17 00:00:00 2001 From: abeldekat <58370433+abeldekat@users.noreply.github.com> Date: Mon, 29 Jun 2026 09:39:15 +0200 Subject: [PATCH] test(basics): adjust `win_borders` test after Nightly changes Details: - The order of the fields in the resulting `vim.o.fillchars` now is the same as in the `H.win_borders_fillchars` definitions. - See PR 39849 in neovim/neovim. --- tests/test_basics.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/test_basics.lua b/tests/test_basics.lua index d4a61809..31798d87 100644 --- a/tests/test_basics.lua +++ b/tests/test_basics.lua @@ -217,7 +217,11 @@ T['Options']['respect `config.options.win_borders`'] = function() end validate(nil, '') - validate('double', 'horiz:═,horizdown:╦,horizup:╩,msgsep:═,vert:║,verthoriz:╬,vertleft:╣,vertright:╠') + local double = 'vert:║,horiz:═,horizdown:╦,horizup:╩,verthoriz:╬,vertleft:╣,vertright:╠,msgsep:═' + if child.fn.has('nvim-0.13') == 0 then + double = 'horiz:═,horizdown:╦,horizup:╩,msgsep:═,vert:║,verthoriz:╬,vertleft:╣,vertright:╠' + end + validate('double', double) -- - Should not respect 'winborder' style names directly validate('none', '') @@ -232,11 +236,17 @@ T['Options']['respect `config.options.win_borders`'] = function() validate_winborder('', '') - local single_fcs = 'horiz:─,horizdown:┬,horizup:┴,msgsep:─,vert:│,verthoriz:┼,vertleft:┤,vertright:├' + local single_fcs = 'vert:│,horiz:─,horizdown:┬,horizup:┴,verthoriz:┼,vertleft:┤,vertright:├,msgsep:─' + if child.fn.has('nvim-0.13') == 0 then + single_fcs = 'horiz:─,horizdown:┬,horizup:┴,msgsep:─,vert:│,verthoriz:┼,vertleft:┤,vertright:├' + end validate_winborder('single', single_fcs) validate_winborder('rounded', single_fcs) - local solid_fcs = 'horiz: ,horizdown: ,horizup: ,msgsep: ,vert: ,verthoriz: ,vertleft: ,vertright: ' + local solid_fcs = 'vert: ,horiz: ,horizdown: ,horizup: ,verthoriz: ,vertleft: ,vertright: ,msgsep: ' + if child.fn.has('nvim-0.13') == 0 then + solid_fcs = 'horiz: ,horizdown: ,horizup: ,msgsep: ,vert: ,verthoriz: ,vertleft: ,vertright: ' + end validate_winborder('solid', solid_fcs) validate_winborder('none', solid_fcs) validate_winborder('shadow', solid_fcs)