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

ctrl+o behaves strangely in insert mode #4841

Closed
wrvsrx opened this issue May 13, 2020 · 0 comments · Fixed by #4849
Closed

ctrl+o behaves strangely in insert mode #4841

wrvsrx opened this issue May 13, 2020 · 0 comments · Fixed by #4849
Labels

Comments

@wrvsrx
Copy link

wrvsrx commented May 13, 2020

Describe the bug
Sometimes, I need to press ctrl+o twice to enter normal mode.

To Reproduce
Steps to reproduce the behavior:

  1. Open test.txt
  2. Press "i", then vscode will enter insert mode
  3. Input "test"
  4. Press "ctrl+o", then vscode will enter normal mode
  5. Press "o", then vscode will move to next line and enter insert mode
  6. Press "ctrl+o", then vscode stays in insert mode
  7. Press "ctrl+o", then vscode will enter normal mode

Step 5 can be replaced with pressing "i", "a" or "ctrl+a". Any input that can enter insert mode will trigger this bug.

Expected behavior
Vscode enters normal mode in step 6.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.14.2
  • VSCode version: 1.45.0
  • OS: Windows 10 Version 2004
J-Fields pushed a commit that referenced this issue May 14, 2020
Fixes #4841

The existing implementation did not reset vimState.actionsCount when we perform action that put user in insert mode after pressing <C-o>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants