* AUTHORS, THANKS: Remove SVN Id tags and a duplication.
* src/winio.c (get_kbinput), src/nano.c (main): Switch the cursor on
in the right place: in the central input routine.
+ * src/files.c (load_poshistory): Free any records that are dropped.
2016-02-09 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (stat_with_alloc, open_buffer, write_file): Check the
record_ptr = newrecord;
/* Impose a limit, so the file will not grow indefinitely. */
- if (++count > 200)
+ if (++count > 200) {
+ poshiststruct *drop_record = position_history;
+
position_history = position_history->next;
+
+ free(drop_record->filename);
+ free(drop_record);
+ }
}
fclose(hist);
free(line);