fix(ui): check for cmdline mode properly

Backport of #35202
This commit is contained in:
zeertzjq
2025-08-07 12:22:01 +08:00
parent 7f1e112a32
commit 6fd842a4fd
7 changed files with 28 additions and 9 deletions

View File

@@ -9587,6 +9587,15 @@ describe('float window', function()
]]
})
end
command('set keymap=dvorak')
feed('<C-^>')
screen:expect_unchanged()
feed('<C-^>')
command('set keymap&')
screen:expect_unchanged()
feed('<ESC>')
-- Show cursor after switching to a normal window (hide=false).