]> granicus.if.org Git - mutt/commitdiff
Don't clear the history when "set history=..." doesn't change the
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 8 Jan 1999 10:43:17 +0000 (10:43 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 8 Jan 1999 10:43:17 +0000 (10:43 +0000)
buffer size.

history.c

index 278db738ba25ff8e2a6e7dabc80462bd0298c178..007f4f45a8618f0be95bd55c136cf5c62db01dd6 100644 (file)
--- 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]);