aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/editor/mode_normal_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/editor/mode_normal_spec.lua b/test/functional/editor/mode_normal_spec.lua
index 8790cbe8a8..b80723a5b9 100644
--- a/test/functional/editor/mode_normal_spec.lua
+++ b/test/functional/editor/mode_normal_spec.lua
@@ -1,6 +1,7 @@
-- Normal mode tests.
local t = require('test.functional.testutil')()
+local Screen = require('test.functional.ui.screen')
local clear = t.clear
local feed = t.feed
local fn = t.fn
@@ -19,4 +20,23 @@ describe('Normal mode', function()
feed('k')
eq(pos, fn.getcurpos())
end)
+
+ it('&showcmd does not crash with :startinsert #28419', function()
+ local screen = Screen.new(60, 17)
+ screen:attach()
+ fn.termopen(
+ { t.nvim_prog, '--clean', '--cmd', 'startinsert' },
+ { env = { VIMRUNTIME = os.getenv('VIMRUNTIME') } }
+ )
+ screen:expect({
+ grid = [[
+ ^ |
+ ~ |*13
+ [No Name] 0,1 All|
+ -- INSERT -- |
+ |
+ ]],
+ attr_ids = {},
+ })
+ end)
end)