winston0410 / range-highlight.nvim

An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
MIT License
203 stars 5 forks source link

Relative offsets not working properly #10

Open jonasw234 opened 2 years ago

jonasw234 commented 2 years ago

Great plugin, thanks a lot!

I noticed a bug with relative offsets. I want to edit the following file:

select me
and me
|and me
and me
last one
not me

(where (|) marks the cursor position) when I make a range selection via :-2,+2 it only marks the first three lines. When I add a . before the +2 (i.e. :-2,.+2) it works fine.