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

Bad behavior when using C-o in insert mode #4453

Closed
neta540 opened this issue Jan 1, 2020 · 1 comment · Fixed by #4461
Closed

Bad behavior when using C-o in insert mode #4453

neta540 opened this issue Jan 1, 2020 · 1 comment · Fixed by #4461
Labels

Comments

@neta540
Copy link

neta540 commented Jan 1, 2020

When using C-o in insert mode, followed by some "enter to insert mode" commands, we enter a buggy "insert mode" which requires to press <Esc> twice in order to exit it, instead of exiting it by pressing <Esc> only once.

To Reproduce

  1. Enter insert mode.
  2. Type any word.
  3. While still in insert mode, press C-o followed by either A, a, I, i, O, o.
  4. Press <Esc> once
  5. Still in insert mode 😞

Expected behavior
After pressing <Esc>, the expected behavior is to enter normal mode.

Environment

  • Extension (VsCodeVim) version: 1.12.4
  • VSCode version: 1.41.1
  • OS: Linux x64
@cvaldev
Copy link
Contributor

cvaldev commented Jan 1, 2020

I looked a bit into this. It'd appear to me setting VimState.returnToInsertAfterCommand back to false after entering Insert Mode would fix it. I could make some changes and add some tests.

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.

3 participants