diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-30 05:25:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 05:25:00 +0800 |
commit | a9665bb12cd8cbacbc6ef6df66c1989b0c6f9fcc (patch) | |
tree | 92ddfe2ac249914a9e5c7e490b275374ea41c12b /test/functional/api/vim_spec.lua | |
parent | 29aa08a09da088178bccc5ea29ac1c872bc4ab32 (diff) | |
download | rneovim-a9665bb12cd8cbacbc6ef6df66c1989b0c6f9fcc.tar.gz rneovim-a9665bb12cd8cbacbc6ef6df66c1989b0c6f9fcc.tar.bz2 rneovim-a9665bb12cd8cbacbc6ef6df66c1989b0c6f9fcc.zip |
fix(event-loop): duplicate display updating logic in vgetorpeek() (#17913)
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index ed9d915954..e6ed0f939b 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -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() |