Mercurial > vim
comparison src/vim9compile.c @ 27237:44cb142c8615 v8.2.4147
patch 8.2.4147: E464 does not always include the offending command
Commit: https://github.com/vim/vim/commit/bed34f0a8a4e38a72a080184881bc68254a8cdc6
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 19 20:48:37 2022 +0000
patch 8.2.4147: E464 does not always include the offending command
Problem: E464 does not always include the offending command.
Solution: Add another error message with "%s". (closes https://github.com/vim/vim/issues/9564)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Jan 2022 22:00:03 +0100 |
parents | 6ed31017c303 |
children | f7cb41ff22a4 |
comparison
equal
deleted
inserted
replaced
27236:6cf6cf88dc33 | 27237:44cb142c8615 |
---|---|
2876 ? NULL : item_exists, &cctx); | 2876 ? NULL : item_exists, &cctx); |
2877 | 2877 |
2878 if (p == NULL) | 2878 if (p == NULL) |
2879 { | 2879 { |
2880 if (cctx.ctx_skip != SKIP_YES) | 2880 if (cctx.ctx_skip != SKIP_YES) |
2881 emsg(_(e_ambiguous_use_of_user_defined_command)); | 2881 semsg(_(e_ambiguous_use_of_user_defined_command_str), ea.cmd); |
2882 goto erret; | 2882 goto erret; |
2883 } | 2883 } |
2884 | 2884 |
2885 // When using ":legacy cmd" always use compile_exec(). | 2885 // When using ":legacy cmd" always use compile_exec(). |
2886 if (local_cmdmod.cmod_flags & CMOD_LEGACY) | 2886 if (local_cmdmod.cmod_flags & CMOD_LEGACY) |