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.
master
Benno Schulenberg 2017-05-17 10:38:36 +02:00
parent 93b1c1bea6
commit 8075e454a9
1 changed files with 1 additions and 1 deletions

View File

@ -2994,7 +2994,7 @@ void update_poshistory(char *filename, ssize_t lineno, ssize_t xpos)
poshiststruct *posptr, *theone, *posprev = NULL; poshiststruct *posptr, *theone, *posprev = NULL;
char *fullpath = get_full_path(filename); char *fullpath = get_full_path(filename);
if (fullpath == NULL || fullpath[strlen(fullpath) - 1] == '/') { if (fullpath == NULL || fullpath[strlen(fullpath) - 1] == '/' || inhelp) {
free(fullpath); free(fullpath);
return; return;
} }