summaryrefslogtreecommitdiffstats
path: root/history.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-08 10:43:17 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-08 10:43:17 +0000
commitfba8e9b768473a6db68a865f6a12127d1ad40cb4 (patch)
treed21e351cdb0a5a4b8f1242986b782534d50e22a0 /history.c
parenteff7a49e01d838a0e3a45b0122ad291201a623ac (diff)
Don't clear the history when "set history=..." doesn't change the
buffer size.
Diffstat (limited to 'history.c')
-rw-r--r--history.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/history.c b/history.c
index 278db738..007f4f45 100644
--- a/history.c
+++ b/history.c
@@ -56,6 +56,9 @@ void mutt_init_history(void)
{
history_class_t hclass;
+ if (HistSize == OldSize)
+ return;
+
for(hclass = HC_FIRST; hclass < HC_LAST; hclass++)
init_history(&History[hclass]);