From 8075e454a9f717dc60eb55c0b0afc24d8be3d81d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Wed, 17 May 2017 10:38:36 +0200 Subject: [PATCH] history: don't save the cursor position for temporary help files It's useless, because the position doesn't get restored, and it cannot be restored because the name is different every time. --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 8711d6e2..92b29893 100644 --- a/src/files.c +++ b/src/files.c @@ -2994,7 +2994,7 @@ void update_poshistory(char *filename, ssize_t lineno, ssize_t xpos) poshiststruct *posptr, *theone, *posprev = NULL; char *fullpath = get_full_path(filename); - if (fullpath == NULL || fullpath[strlen(fullpath) - 1] == '/') { + if (fullpath == NULL || fullpath[strlen(fullpath) - 1] == '/' || inhelp) { free(fullpath); return; } -- GitLab