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:
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user