summaryrefslogtreecommitdiff
path: root/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'except.c')
-rw-r--r--except.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/except.c b/except.c
index 48ea008..241d887 100644
--- a/except.c
+++ b/except.c
@@ -131,7 +131,7 @@ extern void sigint(int s) {
if (s != SIGINT)
panic("s != SIGINT in sigint catcher");
/* this is the newline you see when you hit ^C while typing a command */
- if (nl_on_intr)
+ if (interactive && nl_on_intr)
fprint(2, "\n");
nl_on_intr = TRUE;
redirq = NULL;