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 cursor position after entering command mode (again) #91

Merged

Conversation

kimitake
Copy link
Contributor

@kimitake kimitake commented Dec 3, 2015

after merged Refactor motion. #87, this process was discarded.

@@ -37,6 +37,7 @@ export default class CommandMode extends Mode {

ShouldBeActivated(key : string, currentMode : ModeName) : boolean {
if (key === 'esc' || key === 'ctrl+[') {
this.caret.reset().left().move();
Copy link
Member

Choose a reason for hiding this comment

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

Ah! Thanks! Can you actually move this to HandleActivation()?

@kimitake kimitake force-pushed the fix-cursor-pos-after-entering-command-mode branch from 8e88a08 to 9c93b3a Compare December 3, 2015 23:07
jpoon added a commit that referenced this pull request Dec 3, 2015
…mmand-mode

Fix cursor position after entering command mode
@jpoon jpoon merged commit d44467e into VSCodeVim:master Dec 3, 2015
@jpoon
Copy link
Member

jpoon commented Dec 3, 2015

Thanks!

@kimitake kimitake deleted the fix-cursor-pos-after-entering-command-mode branch December 5, 2015 06:59
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