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; }