Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

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

Open
leoatchina opened this issue Oct 13, 2023 · 3 comments
Open

Comments

@leoatchina
Copy link

leoatchina commented Oct 13, 2023

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 leoatchina changed the title HopWordAC/BC bug when cursor on empty line when using vscode-neovim HopWord* bugs when cursor on empty line while using vscode-neovim Oct 13, 2023
@leoatchina
Copy link
Author

leoatchina commented Oct 13, 2023

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

@jsonMartin
Copy link

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

@ermiashabtegabr
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants