nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit fb9c180baea2dda44f925c2a73a5da3e71c3ca8f
parent c10a1e54dc77b28ff232337610aff1c0c4b458de
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 17 Sep 2017 12:21:19 +0200

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.

Diffstat:
Msrc/history.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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); }