comparison runtime/delmenu.vim @ 18860:ec92ccff5c8b v8.1.2416

patch 8.1.2416: loading menus sets v:errmsg Commit: https://github.com/vim/vim/commit/e24c5b3332b453175e5f73423884087a4aef1247 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 10 22:11:53 2019 +0100 patch 8.1.2416: loading menus sets v:errmsg Problem: Loading menus sets v:errmsg. Solution: Avoid setting v:errmsg and add a test for that. (Jason Franklin)
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Dec 2019 22:15:04 +0100
parents 8ac85adee561
children 8f0ca93857a6
comparison
equal deleted inserted replaced
18859:5b30956b26a4 18860:ec92ccff5c8b
1 " This Vim script deletes all the menus, so that they can be redefined. 1 " This Vim script deletes all the menus, so that they can be redefined.
2 " Warning: This also deletes all menus defined by the user! 2 " Warning: This also deletes all menus defined by the user!
3 " 3 "
4 " Maintainer: Bram Moolenaar <Bram@vim.org> 4 " Maintainer: Bram Moolenaar <Bram@vim.org>
5 " Last Change: 2019 Sep 11 5 " Last Change: 2019 Dec 10
6 6
7 aunmenu * 7 aunmenu *
8 tlunmenu * 8 tlunmenu *
9 9
10 silent! unlet did_install_default_menus 10 unlet! g:did_install_default_menus
11 silent! unlet did_install_syntax_menu 11 unlet! g:did_install_syntax_menu
12 if exists("did_menu_trans") 12
13 if exists('g:did_menu_trans')
13 menutrans clear 14 menutrans clear
14 unlet did_menu_trans 15 unlet g:did_menu_trans
15 endif 16 endif
16 17
17 silent! unlet find_help_dialog 18 unlet! g:find_help_dialog
18 19
19 silent! unlet menutrans_help_dialog 20 unlet! g:menutrans_fileformat_choices
20 silent! unlet menutrans_path_dialog 21 unlet! g:menutrans_fileformat_dialog
21 silent! unlet menutrans_tags_dialog 22 unlet! g:menutrans_help_dialog
22 silent! unlet menutrans_textwidth_dialog 23 unlet! g:menutrans_no_file
23 silent! unlet menutrans_fileformat_dialog 24 unlet! g:menutrans_path_dialog
24 silent! unlet menutrans_fileformat_choices 25 unlet! g:menutrans_set_lang_to
25 silent! unlet menutrans_no_file 26 unlet! g:menutrans_spell_add_ARG_to_word_list
26 silent! unlet menutrans_set_lang_to 27 unlet! g:menutrans_spell_change_ARG_to
27 silent! unlet menutrans_spell_change_ARG_to 28 unlet! g:menutrans_spell_ignore_ARG
28 silent! unlet menutrans_spell_add_ARG_to_word_list 29 unlet! g:menutrans_tags_dialog
29 silent! unlet menutrans_spell_ignore_ARG 30 unlet! g:menutrans_textwidth_dialog
30 31
31 " vim: set sw=2 : 32 " vim: set sw=2 :