mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.77k stars 191 forks source link

fix(typos): line_num is not always returned #529

Closed WhoIsSethDaniel closed 4 months ago

WhoIsSethDaniel commented 4 months ago

At least with recent typos (I have 1.18.1) the line_num is not returned when the typo is discovered on the first line of the document. Only byte_offset is returned. This causes a parser error to appear at the top of the file in vtext.

WhoIsSethDaniel commented 4 months ago

I have tested back to 1.16.0 and this behavior is consistent to at least that release.

WhoIsSethDaniel commented 4 months ago

This only happens when the filename itself is perceived as a misspelling. I have chosen to ignore the error with this PR.

mfussenegger commented 4 months ago

Thanks