0
0
mirror of https://github.com/vim/vim.git synced 2025-10-16 07:24:23 -04:00

patch 7.4.2329

Problem:    Error for min() and max() contains %s. (Nikolay Pavlov)
Solution:   Pass the function name. (closes #1040)
This commit is contained in:
Bram Moolenaar
2016-09-04 21:42:36 +02:00
parent f9e687e068
commit 26b84339fd
3 changed files with 10 additions and 1 deletions

View File

@@ -7629,7 +7629,7 @@ max_min(typval_T *argvars, typval_T *rettv, int domax)
}
}
else
EMSG(_(e_listdictarg));
EMSG2(_(e_listdictarg), domax ? "max()" : "min()");
rettv->vval.v_number = error ? 0 : n;
}