From fb9c180baea2dda44f925c2a73a5da3e71c3ca8f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 17 Sep 2017 12:21:19 +0200 Subject: [PATCH] history: after loading the lists, mark them as unchanged Populating the search, replace, and execute lists makes use of the function update_history() which sets history_changed to TRUE, which meant that the search_history file would always get written even if nothing had changed. --- src/history.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/history.c b/src/history.c index dd25eab6..dda273c9 100644 --- a/src/history.c +++ b/src/history.c @@ -365,6 +365,9 @@ void load_history(void) free(line); } + /* After reading them in, set the status of the lists to "unchanged". */ + history_changed = FALSE; + free(searchhist); free(legacyhist); }