commit | 26b84339fd8766898bcf6a259cbc2e0c38689726 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Sep 04 21:42:36 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Sep 04 21:42:36 2016 +0200 |
tree | f273eb017b4f89484ecc35ff8f4f4a346ad23559 | |
parent | f9e687e0681a250e1549ab27b6c7ef2c500395e3 [diff] [blame] |
patch 7.4.2329 Problem: Error for min() and max() contains %s. (Nikolay Pavlov) Solution: Pass the function name. (closes #1040)
diff --git a/src/evalfunc.c b/src/evalfunc.c index 9d94694..1c1dcf7 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c
@@ -7629,7 +7629,7 @@ } } else - EMSG(_(e_listdictarg)); + EMSG2(_(e_listdictarg), domax ? "max()" : "min()"); rettv->vval.v_number = error ? 0 : n; }