Don't add *everything* to history, LOL.

This commit is contained in:
Dianne Skoll
2025-08-19 21:32:26 -04:00
parent d41520a04f
commit 4661b454c0

View File

@@ -410,7 +410,9 @@ static int ReadLineFromFile(int use_pclose)
}
#ifdef USE_READLINE_HISTORY
add_history(CurLine);
if (fp && fileno(fp) == STDIN_FILENO && isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) {
add_history(CurLine);
}
#endif
got_a_fresh_line();
clear_callstack();