hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

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

Open leoatchina opened this issue 2 years ago • 3 comments

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 avatar Oct 13 '23 08:10 leoatchina

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

leoatchina avatar Oct 13 '23 09:10 leoatchina

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

jsonMartin avatar Jan 13 '24 23:01 jsonMartin

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

ermiashabtegabr avatar Jan 15 '24 10:01 ermiashabtegabr