diff options
author | Jurica Bradarić <jbradaric@users.noreply.github.com> | 2017-03-23 08:54:01 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-23 08:54:01 +0100 |
commit | 06ed7a189b2c1dca88f307538b9739b989776068 (patch) | |
tree | 72213220cced48d40e70f1fc1aa490a438c7f280 /src/nvim/eval.c | |
parent | 44e75eba30682007dd17f9a80805a9925a921976 (diff) | |
download | rneovim-06ed7a189b2c1dca88f307538b9739b989776068.tar.gz rneovim-06ed7a189b2c1dca88f307538b9739b989776068.tar.bz2 rneovim-06ed7a189b2c1dca88f307538b9739b989776068.zip |
vim-patch:7.4.2329 (#6341)
Problem: Error for min() and max() contains %s. (Nikolay Pavlov)
Solution: Pass the function name. (closes vim/vim#1040)
https://github.com/vim/vim/commit/26b84339fd8766898bcf6a259cbc2e0c38689726
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 0872ed37ad..8f52717252 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -13804,8 +13804,9 @@ static void max_min(typval_T *argvars, typval_T *rettv, int domax) } } } - } else - EMSG(_(e_listdictarg)); + } else { + EMSG2(_(e_listdictarg), domax ? "max()" : "min()"); + } rettv->vval.v_number = error ? 0 : n; } |