diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-21 23:07:34 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-05-21 23:07:34 +0200 |
commit | 3c1bc75447841a2cc4d0222657556aa172c91915 (patch) | |
tree | a7dc534297fc33875831958c7a6dac363ab069d1 /test/functional/legacy/prompt_buffer_spec.lua | |
parent | 1f1a65a9e4c602cd80458b213c28eadbdb5b1de1 (diff) | |
download | rneovim-3c1bc75447841a2cc4d0222657556aa172c91915.tar.gz rneovim-3c1bc75447841a2cc4d0222657556aa172c91915.tar.bz2 rneovim-3c1bc75447841a2cc4d0222657556aa172c91915.zip |
fix(tests): fix some screen.lua warnings
Diffstat (limited to 'test/functional/legacy/prompt_buffer_spec.lua')
-rw-r--r-- | test/functional/legacy/prompt_buffer_spec.lua | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua index 47eca19de3..63338b8dba 100644 --- a/test/functional/legacy/prompt_buffer_spec.lua +++ b/test/functional/legacy/prompt_buffer_spec.lua @@ -23,7 +23,7 @@ describe('prompt buffer', function() close else call append(line("$") - 1, 'Command: "' . a:text . '"') - set nomodfied + set nomodified call timer_start(20, {id -> TimerFunc(a:text)}) endif endfunc @@ -33,7 +33,7 @@ describe('prompt buffer', function() endfunc func SwitchWindows() - call timer_start(0, {-> execute("wincmd p|wincmd p", "")}) + call timer_start(0, {-> execute("wincmd p", "")}) endfunc ]]) feed_command("set noshowmode | set laststatus=0") @@ -187,7 +187,19 @@ describe('prompt buffer', function() -- INSERT -- | ]]) feed("<C-O>:call SwitchWindows()<CR>") - poke_eventloop() + screen:expect{grid=[[ + cmd: | + ~ | + ~ | + ~ | + [Prompt] [+] | + ^other buffer | + ~ | + ~ | + ~ | + | + ]]} + feed("<C-O>:call SwitchWindows()<CR>") screen:expect([[ cmd: ^ | ~ | @@ -201,7 +213,6 @@ describe('prompt buffer', function() -- INSERT -- | ]]) feed("<Esc>") - poke_eventloop() screen:expect([[ cmd:^ | ~ | |