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.
master
Benno Schulenberg 2017-09-17 12:21:19 +02:00
parent c10a1e54dc
commit fb9c180bae
1 changed files with 3 additions and 0 deletions

View File

@ -365,6 +365,9 @@ void load_history(void)
free(line); free(line);
} }
/* After reading them in, set the status of the lists to "unchanged". */
history_changed = FALSE;
free(searchhist); free(searchhist);
free(legacyhist); free(legacyhist);
} }