Skip to content

Commit

Permalink
fix: use window-local 'fillchars' for 'foldcolumn' (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopi-py authored Apr 28, 2024
1 parent 1ab3659 commit ef3617d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lua/statuscol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ local function update_callargs(args, win, tick)
local culopt = a.nvim_get_option_value("culopt", opts)
args.cul = a.nvim_get_option_value("cul", opts) and (culopt:find("nu") or culopt:find("bo"))
args.sclnu = lnumfunc and a.nvim_get_option_value("scl", opts):find("nu")
local fcs = Ol.fcs:get()
args.fold.sep = fcs.foldsep or ""
args.fold.open = fcs.foldopen or "-"
args.fold.close = fcs.foldclose or "+"
args.fold.width = C.compute_foldcolumn(args.wp, 0)
if args.fold.width > 0 then
local fcs = a.nvim_win_call(args.win, function() return Ol.fcs:get() end)
args.fold.sep = fcs.foldsep or ""
args.fold.open = fcs.foldopen or "-"
args.fold.close = fcs.foldclose or "+"
end
args.empty = C.win_col_off(args.wp) == 0
if signsegmentcount - ((lnumfunc and not args.sclnu) and 1 or 0) > 0 then
-- Retrieve signs for the entire buffer and store in "signsegments"
Expand Down

0 comments on commit ef3617d

Please sign in to comment.