diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-03 07:10:35 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-03 07:10:35 +0000 |
commit | d205f2530b970462baa00784a2acf20526d596e6 (patch) | |
tree | 0e148e285d1feb64314a3aa47588982290952980 /Src/builtin.c | |
parent | bce92dbdee6f316be146a201656899ded2e32695 (diff) | |
download | zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.gz zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.xz zsh-d205f2530b970462baa00784a2acf20526d596e6.zip |
allow calling `print -s' in widgets, avoid duplicated history number
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 508df9a4d..bca0ab33f 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -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)) { |