hadronized / hop.nvim

Neovim motions on speed!
Other
2.47k stars 137 forks source link

HopWord* bugs when cursor on empty line while using vscode-neovim #378

Open leoatchina opened 11 months ago

leoatchina commented 11 months ago

Bugs happend on lastest vcode and vscode-neovim plugin on window10, while neovim version is 0.9.1

Just as below, my cursor is on a empty line begin and do sj (map to HopWordAC) in vscode-neovim, errors raised. image

But HopWord raised no errors when on empy line , but could not do buffer jump, show in below

image

when cursor on word and do the same thing, no bugs happened.

leoatchina commented 11 months ago

Found it is related win neovim-0.9, not only vscode-neovim

jsonMartin commented 8 months ago

I'm also having this error with vscode-neovim and neovim-0.9, but on MacOS...

ermiashabtegabr commented 8 months ago

I also had the same out of range error and i fixed it by adding the following to init.lua at line 129:

if current_width == 0 then
    end_col = current_width
else
    end_col = current_width - 1
end