Skip to content

Commit e9e4c30

Browse files
ofseedluukvbaal
authored andcommitted
fix: avoid repeat foldclose or foldopen chars when 'wrap' is set (#107)
1 parent b9e87ca commit e9e4c30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/statuscol/builtin.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ function M.foldfunc(args)
4646
-- For each column, add a foldopen, foldclosed, foldsep or padding char
4747
local range = level < width and level or width
4848
for col = 1, range do
49-
if closed and (col == level or col == width) then
49+
if args.virtnum ~= 0 then
50+
string = string..args.fold.sep
51+
elseif closed and (col == level or col == width) then
5052
string = string..args.fold.close
5153
elseif foldinfo.start == args.lnum and first_level + col > foldinfo.llevel then
5254
string = string..args.fold.open

0 commit comments

Comments
 (0)