fix(getchar): flush screen before doing a blocking wait

This commit is contained in:
zeertzjq
2022-06-26 15:20:44 +08:00
parent 95b8e2c55f
commit b47f313151
2 changed files with 15 additions and 0 deletions

View File

@@ -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()