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:
parent
bce92dbdee
commit
d205f2530b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue