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

Fix wrong return in ModeHandlerMap.get #4581

Merged
merged 2 commits into from Feb 25, 2020
Merged

Fix wrong return in ModeHandlerMap.get #4581

merged 2 commits into from Feb 25, 2020

Conversation

fatanugraha
Copy link
Contributor

@fatanugraha fatanugraha commented Feb 24, 2020

Hello, in my setup, this resolves #4479, #3277

From what i can observe, here's what i found to arrive to this conclusion:

  • on vscode.window.onDidChangeActiveTextEditor i always get lastClosedModeHandler = undefined despite that the current file is exists on ModeHandlerMap
  • due to lastClosedModeHandler = undefined jumping from current file doesn't push it to the jump stack

@fatanugraha fatanugraha requested review from jpoon and J-Fields and removed request for jpoon February 24, 2020 22:09
src/editorIdentity.ts Outdated Show resolved Hide resolved
@J-Fields
Copy link
Member

Nice catch, thanks for the PR! I'll take a closer look later but this seems reasonable and does fix the issue, I think.

Copy link
Member

@J-Fields J-Fields left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking this one down, LGTM!

@J-Fields J-Fields merged commit d67eacb into VSCodeVim:master Feb 25, 2020
@J-Fields J-Fields mentioned this pull request Feb 26, 2020
@jpoon
Copy link
Member

jpoon commented Mar 2, 2020

Thanks for the fix!

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

Successfully merging this pull request may close these issues.

<c-o>/<c-t> jump back to wrong location after 'gd'
3 participants