comparison src/testdir/test_popup.vim @ 15375:6012cc6936f7 v8.1.0695

patch 8.1.0695: internal error when using :popup commit https://github.com/vim/vim/commit/f42b45d719e03218735b3c2845a74dca9c0efd60 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 6 13:11:05 2019 +0100 patch 8.1.0695: internal error when using :popup Problem: Internal error when using :popup. Solution: When a menu only exists in Terminal mode give an error. (Naruhiko Nishino, closes #3765)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Jan 2019 13:15:09 +0100
parents 6a74cde86252
children 0375e54f0adc
comparison
equal deleted inserted replaced
15374:13a34f8e996b 15375:6012cc6936f7
880 bwipe! 880 bwipe!
881 set completeopt& 881 set completeopt&
882 delfunc s:act_on_text_changed 882 delfunc s:act_on_text_changed
883 endfunc 883 endfunc
884 884
885 func Test_menu_only_exists_in_terminal()
886 if !exists(':tlmenu') || has('gui_running')
887 return
888 endif
889 tlnoremenu &Edit.&Paste<Tab>"+gP <C-W>"+
890 aunmenu *
891 try
892 popup Edit
893 call assert_false(1, 'command should have failed')
894 catch
895 call assert_exception('E328:')
896 endtry
897 endfunc
885 898
886 " vim: shiftwidth=2 sts=2 expandtab 899 " vim: shiftwidth=2 sts=2 expandtab