1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02: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

View file

@ -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)) {