Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to Line Using [line]+gg Throws Exception #3845

Closed
k4yt3x opened this issue Jun 20, 2019 · 4 comments
Closed

Go to Line Using [line]+gg Throws Exception #3845

k4yt3x opened this issue Jun 20, 2019 · 4 comments
Labels

Comments

@k4yt3x
Copy link

k4yt3x commented Jun 20, 2019

Description

When going to a line that doesn't exist, using line 100 in a document 90 lines long for example, using 100 + G goes to the last line, where 100 + gg throws an error and does nothing.

Reproduce

In any documents, go to a line that doesn't exist using [line number] + gg.

Expected Behavior

When going to a line that's out of bound, go to the last line, just like how vim behaves.

Screenshots

image

Environment

  • Extension Name: vim
  • Extension Version: 1.8.1
  • OS Version: Linux x64 4.19.0-kali5-amd64
  • VSCode version: 1.35.1
@zhuzisheng
Copy link
Contributor

I can reproduce this error.
Will try to fix.

@Stamo-Gochev
Copy link

I am experiencing a similar problem - an error is not thrown, but the navigation still fails. I see that the PR has been merged into master, so I suppose the issue should be closed and the fix will be out with the next version?

@k4yt3x
Copy link
Author

k4yt3x commented Jul 15, 2019

I believe this problem has been fixed in #3845.

@k4yt3x k4yt3x closed this as completed Jul 15, 2019
@Stamo-Gochev
Copy link

Stamo-Gochev commented Jul 16, 2019

@k4yt3x Is this part of 1.8.2?. I've just upgraded and I am still not able to jump to the line. Can someone else recheck that?

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

No branches or pull requests

4 participants