Skip to content

Commit

Permalink
fix: use cursorline_hl_group from sign (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo1321 authored Jul 31, 2024
1 parent d6f7f54 commit 93d8bcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/statuscol/builtin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function M.signfunc(args, segment)
local signcount = #sss
for i = 1, signcount do
local s = sss[i]
text = text.."%#"..s.sign_hl_group.."#"..s.sign_text.."%*"
local hl_group = args.relnum == 0 and s.cursorline_hl_group or s.sign_hl_group
text = text.."%#"..hl_group.."#"..s.sign_text.."%*"
end
local pad = wss.padwidth - signcount
if pad > 0 then
Expand Down

0 comments on commit 93d8bcd

Please sign in to comment.