summaryrefslogtreecommitdiff
path: root/src/testdir/test_prompt_buffer.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-20 16:05:32 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-20 16:05:32 +0200
commit845e0ee59430eac07e74b6cb92020e420d17953d (patch)
tree26060a20d77b243156cdeda2d6ae7a735469bff3 /src/testdir/test_prompt_buffer.vim
parenta190548e9165bbae75144a3e47f01d7708b29073 (diff)
downloadvim-git-845e0ee59430eac07e74b6cb92020e420d17953d.tar.gz
patch 8.2.1022: various parts of code not covered by testsv8.2.1022
Problem: Various parts of code not covered by tests. Solution: Add more tests. (Yegappan Lakshmanan, closes #6300)
Diffstat (limited to 'src/testdir/test_prompt_buffer.vim')
-rw-r--r--src/testdir/test_prompt_buffer.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_prompt_buffer.vim b/src/testdir/test_prompt_buffer.vim
index 760e1d979..ace83a80b 100644
--- a/src/testdir/test_prompt_buffer.vim
+++ b/src/testdir/test_prompt_buffer.vim
@@ -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