hlchunk.nvim icon indicating copy to clipboard operation
hlchunk.nvim copied to clipboard

`lua/hlchunk/utils/indentHelper.lua:28: attempt to perform arithmetic on local 'leftcol' (a nil value)` error when terminal width is less than 138 cols

Open msva opened this issue 1 year ago • 2 comments

Describe the bug When I open nvim with hlchunk installed and configured, and if terminal width is less that 138 cols, I'm getting following error on nvim startup:

...vim/lazy/hlchunk.nvim/lua/hlchunk/utils/indentHelper.lua:28: attempt to perform arithmetic on local 'leftcol' (a nil value)

Screenshots image

Maybe it is worth to add something like or 0 (or something like that) there?

msva avatar Oct 04 '24 21:10 msva

Well, it seems that it also sometimes appears not even when width is <138 cols. Just nvim don't wait for I press enter, and boots further.

I just found that is also appears when I editing nvim lua config with full width (236 cols)

msva avatar Oct 04 '24 21:10 msva

(also, happens only when blank module is enabled)

msva avatar Oct 04 '24 21:10 msva