diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-06 13:11:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-06 13:11:05 +0100 |
commit | f42b45d719e03218735b3c2845a74dca9c0efd60 (patch) | |
tree | e5974454b590f16abc0aeafa523f4a710bdbf24e /src/testdir/test_popup.vim | |
parent | 4614f53e0f853b513963d1a639398348a571ecf1 (diff) | |
download | vim-git-f42b45d719e03218735b3c2845a74dca9c0efd60.tar.gz |
patch 8.1.0695: internal error when using :popupv8.1.0695
Problem: Internal error when using :popup.
Solution: When a menu only exists in Terminal mode give an error. (Naruhiko
Nishino, closes #3765)
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 287d59d90..663a6a8e0 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -882,5 +882,18 @@ func Test_complete_o_tab() delfunc s:act_on_text_changed endfunc +func Test_menu_only_exists_in_terminal() + if !exists(':tlmenu') || has('gui_running') + return + endif + tlnoremenu &Edit.&Paste<Tab>"+gP <C-W>"+ + aunmenu * + try + popup Edit + call assert_false(1, 'command should have failed') + catch + call assert_exception('E328:') + endtry +endfunc " vim: shiftwidth=2 sts=2 expandtab |