From 15e8fe245d62798b4e21059b101231982532546b Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 31 Dec 2007 23:14:17 +0000 Subject: 24324: do not set ftim when re-entering the history mechanism for string substitution. --- ChangeLog | 3 +++ Src/hist.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4313a3862..975acea87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ run-help-$1 to provide specific help for the command, before falling back on "man". + * 24324: Src/hist.c: do not set ftim when re-entering the history + mechanism for string substitution. + 2007-12-31 Clint Adams * 24330: Completion/X/_xpdf: add some missing options from xpdf diff --git a/Src/hist.c b/Src/hist.c index d4f3fc454..05fc6e003 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -826,7 +826,7 @@ hbegin(int dohist) } chwordpos = 0; - if (hist_ring && !hist_ring->ftim) + if (hist_ring && !hist_ring->ftim && !strin) hist_ring->ftim = time(NULL); if ((dohist == 2 || (interact && isset(SHINSTDIN))) && !strin) { histactive = HA_ACTIVE; -- cgit 1.4.1