Skip to content

Commit

Permalink
fix: opts.warning.offset ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jan 14, 2024
1 parent fb52c97 commit acc37e1
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 @@ -164,7 +164,7 @@ local function setup(opts)
if not C_CC or not C_NORMAL or not C_ERROR then
update_hl_hex()
end
local new_cc_color = length < cc
local new_cc_color = length < cc + configs.opts.warning.offset
and colors.cblend(C_CC, C_NORMAL, (length - thresh) / (cc - thresh)).dec
or colors.cblend(C_ERROR, C_NORMAL, configs.opts.warning.alpha).dec
if new_cc_color ~= cc_bg then
Expand Down

0 comments on commit acc37e1

Please sign in to comment.