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 (simpler) - cursor whenever changing editors - closes #2688 #3103

Merged

Conversation

captaincaius
Copy link
Contributor

What this PR does / why we need it:
ModeHandler.syncCursors() and updateView() stopped being called on active editor changes after the bugfix to EditorIdentity because a window change wasn't being detected as a window change when the filename-only identity is identical :D.

getAndUpdateModeHandler() is called in a ton of places, so this PR adds a force-sync option, and has the ActiveEditorChange handler use it.

Which issue(s) this PR fixes
#2688

Special notes for your reviewer:

This PR restores the behavior to how it was before.

I took a wrong turn on another PR, but because of that, I noticed that there's some differences between selection change handling and editor switches. It's pretty clear from just the length of it ;), but for example, EOL-checking seems to behave slightly different when switching editors than when staying in the same editor. It's probably outside the scope of this issue, but I thought I'd mention it.

@xconverge
Copy link
Member

This looks pretty straight forward to me!

@captaincaius
Copy link
Contributor Author

it was your idea after all ;) thanks again!

@xconverge xconverge merged commit 01d2dce into VSCodeVim:master Oct 9, 2018
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.

None yet

2 participants