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(ex_normal): spam \n in Ex mode only if in Cmdline mode #17977

Merged
merged 1 commit into from
Apr 3, 2022

Conversation

zeertzjq
Copy link
Member

@zeertzjq zeertzjq commented Apr 3, 2022

Fix #17924

When using :normal in Ex mode, the editor is no longer in Cmdline mode, but the exmode_active flag is still set, causing the wrong character to be spammed in Insert mode, leading to a hang.

@zeertzjq zeertzjq changed the title fix(:normal): spam \n in Ex mode only if in Cmdline mode fix(:normal): spam NL in Ex mode only if in Cmdline mode Apr 3, 2022
@zeertzjq zeertzjq added the input label Apr 3, 2022
@zeertzjq zeertzjq changed the title fix(:normal): spam NL in Ex mode only if in Cmdline mode fix(ex_normal): spam \n in Ex mode only if in Cmdline mode Apr 3, 2022
When using :normal in Ex mode, the editor is no longer in Cmdline mode,
but the exmode_active flag is still set, causing the wrong character to
be spammed in Insert mode, leading to a hang.
@zeertzjq zeertzjq merged commit a783cdd into neovim:master Apr 3, 2022
@zeertzjq zeertzjq deleted the fix-ex-mode-regression branch April 3, 2022 00:58
wsdjeg added a commit to SpaceVim/SpaceVim that referenced this pull request Apr 9, 2022
In Ex mode `line('w$')` return 0, so we should not use Display
range for Ex mode.

neovim issues and pull requests:

- neovim/neovim#18050
- neovim/neovim#14311
- neovim/neovim#17986
- neovim/neovim#17977

close https://github.com/SpaceVim/SpaceVim/issues/4629
dmitmel pushed a commit to dmitmel/neovim that referenced this pull request Apr 16, 2022
)

When using :normal in Ex mode, the editor is no longer in Cmdline mode,
but the exmode_active flag is still set, causing the wrong character to
be spammed in Insert mode, leading to a hang.
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 this pull request may close these issues.

Hang when calling :normal that ends in Insert mode from Ex mode
1 participant