1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

allow calling `print -s' in widgets, avoid duplicated history number

This commit is contained in:
Sven Wischnowsky 2000-05-03 07:10:35 +00:00
parent bce92dbdee
commit d205f2530b

@ -2777,7 +2777,7 @@ bin_print(char *name, char **args, char *ops, int func)
int nwords = 0, nlen, iwords;
char **pargs = args;
ent = prepnexthistent(++curhist);
ent = prepnexthistent(zleactive ? curhist++ : ++curhist);
while (*pargs++)
nwords++;
if ((ent->nwords = nwords)) {