diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-26 15:20:44 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 17:58:35 +0800 |
commit | b47f3131515df91a4438adbc1ed2756a1fc453d7 (patch) | |
tree | 8d4e1fd0d407509f84c346ba1b4a972e7fdb71a4 /test/functional/ui/messages_spec.lua | |
parent | 95b8e2c55f7d119497ec4008e564b2520c6d5e9b (diff) | |
download | rneovim-b47f3131515df91a4438adbc1ed2756a1fc453d7.tar.gz rneovim-b47f3131515df91a4438adbc1ed2756a1fc453d7.tar.bz2 rneovim-b47f3131515df91a4438adbc1ed2756a1fc453d7.zip |
fix(getchar): flush screen before doing a blocking wait
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r-- | test/functional/ui/messages_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index e7eaedba2d..2cff7c1cf4 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -1243,6 +1243,19 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim | ]]) end) + + it('echo messages are shown correctly when getchar() immediately follows', function() + feed([[:echo 'foo' | echo 'bar' | call getchar()<CR>]]) + screen:expect([[ + | + {1:~ }| + {1:~ }| + {1:~ }| + {3: }| + foo | + bar^ | + ]]) + end) end) describe('ui/ext_messages', function() |