lewis6991 / fileline.nvim

Goto filenames with line info
MIT License
51 stars 3 forks source link

Fix when line number is greater than last line #4

Closed raphaelahrens closed 1 year ago

raphaelahrens commented 1 year ago

When I have a file

wc -l file.test
4

and open it with

nvim file.test:5

the plugin throws an error.

The behavior of the plugin has been changed to only take the given line number if it is smaler or equal to the number of lines in the file. So running nvim file.test:5 with this patch sets the cursor to line 4.