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 | |
| parent | allow calling `print -s' in widgets, avoid duplicated history number (11086) (diff) | |
| download | zsh-d205f2530b970462baa00784a2acf20526d596e6.tar zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.gz zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.bz2 zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.lz zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.xz zsh-d205f2530b970462baa00784a2acf20526d596e6.tar.zst zsh-d205f2530b970462baa00784a2acf20526d596e6.zip | |
allow calling `print -s' in widgets, avoid duplicated history number
| -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)) { |
