mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
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)
26b84339fd
This commit is contained in:

committed by
Justin M. Keyes

parent
44e75eba30
commit
06ed7a189b
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user