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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user