mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 20:48:32 +00:00

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.
14 lines
336 B
Lua
14 lines
336 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local clear = helpers.clear
|
|
local feed = helpers.feed
|
|
local expect = helpers.expect
|
|
|
|
before_each(clear)
|
|
|
|
describe(':normal', function()
|
|
it('can get out of Insert mode if called from Ex mode #17924', function()
|
|
feed('gQnormal! Ifoo<CR>')
|
|
expect('foo')
|
|
end)
|
|
end)
|