From acc37e1a27c19df030cb824297885172e0f29ceb Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Sun, 14 Jan 2024 14:20:34 +0800 Subject: [PATCH] fix: `opts.warning.offset` ignored --- lua/deadcolumn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/deadcolumn.lua b/lua/deadcolumn.lua index ee4ef36..663c390 100644 --- a/lua/deadcolumn.lua +++ b/lua/deadcolumn.lua @@ -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