+2016-02-07 Benno Schulenberg <bensberg@justemail.net>
+ * src/files.c (update_poshistory): Don't put files in the history list
+ when they have the default cursor position (line 1, column 1).
+
2016-02-06 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (write_file): Remove the --nofollow option that hasn't
been working for a dozen years.
posprev = posptr;
}
+ /* Don't record files that have the default cursor position. */
+ if (lineno == 1 && xpos == 1) {
+ if (posptr != NULL) {
+ if (posprev == NULL)
+ position_history = posptr->next;
+ else
+ posprev->next = posptr->next;
+ free(posptr->filename);
+ free(posptr);
+ }
+ free(fullpath);
+ return;
+ }
+
theone = posptr;
/* If we didn't find it, make a new node; otherwise, if we're