1
0
forked from aniani/vim

patch 8.2.1022: various parts of code not covered by tests

Problem:    Various parts of code not covered by tests.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #6300)
This commit is contained in:
Bram Moolenaar
2020-06-20 16:05:32 +02:00
parent a190548e91
commit 845e0ee594
15 changed files with 330 additions and 11 deletions

View File

@@ -147,6 +147,11 @@ func Test_prompt_buffer_edit()
call assert_beeps('normal! S')
call assert_beeps("normal! \<C-A>")
call assert_beeps("normal! \<C-X>")
" pressing CTRL-W in the prompt buffer should trigger the window commands
call assert_equal(1, winnr())
exe "normal A\<C-W>\<C-W>"
call assert_equal(2, winnr())
wincmd w
close!
call assert_equal(0, prompt_setprompt([], ''))
endfunc