aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_menu.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-01 10:54:41 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-01 11:02:55 +0800
commit300490f2e8e94ee471685cd9809964c10ebdc1ed (patch)
treed5e13bc8ca3d21531a98923ce327d380b7d19394 /src/nvim/testdir/test_menu.vim
parent2268a4147ec1e9f0236fd5eb56c1cc2b751eca05 (diff)
downloadrneovim-300490f2e8e94ee471685cd9809964c10ebdc1ed.tar.gz
rneovim-300490f2e8e94ee471685cd9809964c10ebdc1ed.tar.bz2
rneovim-300490f2e8e94ee471685cd9809964c10ebdc1ed.zip
vim-patch:8.2.0049: command line completion not fully tested
Problem: Command line completion not fully tested. Solution: Add more test cases. Make help sorting stable. (Dominique Pelle, closes vim/vim#5402) https://github.com/vim/vim/commit/297610ba4b110c918ffe60c45eb4a1d6ea2daae5
Diffstat (limited to 'src/nvim/testdir/test_menu.vim')
-rw-r--r--src/nvim/testdir/test_menu.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_menu.vim b/src/nvim/testdir/test_menu.vim
index eb25e41990..61c3a16125 100644
--- a/src/nvim/testdir/test_menu.vim
+++ b/src/nvim/testdir/test_menu.vim
@@ -46,6 +46,10 @@ func Test_menu_commands()
imenu 2 Test.FooBar :let g:did_menu = 'insert'<CR>
cmenu 2 Test.FooBar :let g:did_menu = 'cmdline'<CR>
emenu n Test.FooBar
+
+ call feedkeys(":menu Test.FooB\<C-A>\<C-B>\"\<CR>", 'tx')
+ call assert_equal('"menu Test.FooBar', @:)
+
call assert_equal('normal', g:did_menu)
emenu v Test.FooBar
call assert_equal('visual', g:did_menu)