We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08a1651 commit be14e14Copy full SHA for be14e14
lua/easycomplete/cmdline.lua
@@ -69,7 +69,13 @@ function this.calculate_sign_and_linenr_width()
69
if vim.wo.number or vim.wo.relativenumber then
70
-- 计算行号的最大宽度
71
local max_num_width = #tostring(vim.fn.line("$"))
72
- width = width + max_num_width
+ local realwidth = 3
73
+ if max_num_width <= 3 then
74
+ -- do nothing
75
+ else
76
+ realwidth = realwidth + (max_num_width - 3)
77
+ end
78
+ width = width + realwidth
79
end
80
return width
81
0 commit comments