From 42466f358e962bccd31647de92ea3053cd950db7 Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Fri, 25 Oct 2024 12:36:38 -0400 Subject: [PATCH] fix(configs): error calculating length of blobs (#23) --- lua/deadcolumn/configs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/deadcolumn/configs.lua b/lua/deadcolumn/configs.lua index 1995a6d..68fe99e 100644 --- a/lua/deadcolumn/configs.lua +++ b/lua/deadcolumn/configs.lua @@ -3,7 +3,7 @@ local M = {} -- Functions to get the line length for different scopes local scope_fn = { line = function() - return vim.fn.strdisplaywidth(vim.api.nvim_get_current_line()) + return vim.fn.strdisplaywidth(vim.fn.getline('.')) end, buffer = function() local range = 1000