fix(event-loop): duplicate display updating logic in vgetorpeek() (#17913)

This commit is contained in:
zeertzjq
2022-03-30 05:25:00 +08:00
committed by GitHub
parent 29aa08a09d
commit a9665bb12c
4 changed files with 64 additions and 1 deletions

View File

@@ -1589,6 +1589,18 @@ describe('API', function()
feed(':digraphs<cr>')
eq({mode='rm', blocking=true}, nvim("get_mode"))
end)
it('after <Nop> mapping returns blocking=false #17257', function()
command('nnoremap <F2> <Nop>')
feed('<F2>')
eq({mode='n', blocking=false}, nvim("get_mode"))
end)
it('after empty string <expr> mapping returns blocking=false #17257', function()
command('nnoremap <expr> <F2> ""')
feed('<F2>')
eq({mode='n', blocking=false}, nvim("get_mode"))
end)
end)
describe('RPC (K_EVENT)', function()