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
parent
93b1c1bea6
commit
8075e454a9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue