From d205f2530b970462baa00784a2acf20526d596e6 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 3 May 2000 07:10:35 +0000 Subject: allow calling `print -s' in widgets, avoid duplicated history number --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') 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)) { -- cgit 1.4.1