Commit 8075e454 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment