Mercurial > vim
diff src/userfunc.c @ 11561:7ad79766365a v8.0.0663
patch 8.0.0663: unexpected error message only when 'verbose' is set
commit https://github.com/vim/vim/commit/f8be461d0284110b321be748fea206d4169b98bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 23 20:52:40 2017 +0200
patch 8.0.0663: unexpected error message only when 'verbose' is set
Problem: Giving an error message only when 'verbose' set is unexpected.
Solution: Give a warning message instead.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 23 Jun 2017 21:00:03 +0200 |
parents | 1780e6fecb30 |
children | 7003f241b6c7 |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -2137,7 +2137,9 @@ ex_function(exarg_T *eap) /* Another command follows. */ eap->nextcmd = line_arg; else if (*p != NUL && *p != '"' && p_verbose > 0) - EMSG2((char_u *)_("E946: Text found after :endfunction: %s"), p); + give_warning2( + (char_u *)_("W22: Text found after :endfunction: %s"), + p, TRUE); if (line_arg == NULL) vim_free(theline); break;