Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions tests/test_basics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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', '')

Expand All @@ -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)
Expand Down