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

Fixes Incorrect Cursor Position after Transition into Normal Mode #202

Merged
merged 1 commit into from
Apr 26, 2016

Conversation

dpbackes
Copy link
Contributor

  • By having redraw enforce cursor position, we were double
    moving because both redraw (via Motion.changedMode) and
    handleActivationKey were moving the cursor left. This makes
    it so redraw is not responsible for enforcing the cursor
    position. Instead, position enforcement is handled only when
    the cursor may have been moved externally (ie via the mouse).

Closes #201

@jpoon
Copy link
Member

jpoon commented Apr 18, 2016

Thanks for the fix! Re-ran the tests. Not sure why the failed -- will need to look into that.

Do you mind resolving the conflicts? As soon as that happens, I can merge this.

- By having `redraw` enforce cursor position, we were double
  moving becase both `redraw` (via `Motion.changedMode`) and
  `handleActivationKey` were moving the cursor left. This makes
  it so `redraw` is not responsible for enforcing the cursor
  position. Instead, position enforcement is handled only when
  the cursor may have been moved externally (ie via the mouse).
@dpbackes
Copy link
Contributor Author

My pleasure! Conflicts resolved.

@jpoon
Copy link
Member

jpoon commented Apr 26, 2016

Looks great, let me restart these builds just to make sure :)

@jpoon jpoon merged commit 602a4df into VSCodeVim:master Apr 26, 2016
This pull request was closed.
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.

2 participants