Skip to content

Commit

Permalink
fix: get_hl_hex() not padding hex color codes (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jan 14, 2024
1 parent 40a1ddd commit 4bec1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/deadcolumn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local function get_hl_hex(hlgroup_name, field, fallback)
end
local attr_val =
colors.get(0, { name = hlgroup_name, winhl_link = false })[field]
return attr_val and colors.dec2hex(attr_val) or fallback
return attr_val and colors.dec2hex(attr_val, 6) or fallback
end

---Update base colors: bg color of Normal & ColorColumn, and fg of Error
Expand Down

0 comments on commit 4bec1fa

Please sign in to comment.