comparison src/menu.c @ 21461:4dfd00f481fb v8.2.1281

patch 8.2.1281: the "trailing characters" error can be hard to understand Commit: https://github.com/vim/vim/commit/2d06bfde29bd3a62fc85823d2aa719ef943bd319 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 23 17:16:18 2020 +0200 patch 8.2.1281: the "trailing characters" error can be hard to understand Problem: The "trailing characters" error can be hard to understand. Solution: Add the trailing characters to the message.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 17:30:03 +0200
parents 9064044fd4f6
children 00f2eebe74d9
comparison
equal deleted inserted replaced
21460:280fe8be34a2 21461:4dfd00f481fb
287 show_menus(menu_path, modes); 287 show_menus(menu_path, modes);
288 goto theend; 288 goto theend;
289 } 289 }
290 else if (*map_to != NUL && (unmenu || enable != MAYBE)) 290 else if (*map_to != NUL && (unmenu || enable != MAYBE))
291 { 291 {
292 emsg(_(e_trailing)); 292 semsg(_(e_trailing_arg), map_to);
293 goto theend; 293 goto theend;
294 } 294 }
295 #if defined(FEAT_GUI) && !(defined(FEAT_GUI_GTK) || defined(FEAT_GUI_PHOTON)) 295 #if defined(FEAT_GUI) && !(defined(FEAT_GUI_GTK) || defined(FEAT_GUI_PHOTON))
296 old_menu_height = gui.menu_height; 296 old_menu_height = gui.menu_height;
297 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN) 297 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN)