Skip to content

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 #145

@msva

Description

@msva

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions