about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Src/utils.c b/Src/utils.c
index e8de8d5af..fad00cf93 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -686,13 +686,6 @@ preprompt(void)
     int period = getiparam("PERIOD");
     int mailcheck = getiparam("MAILCHECK");
 
-    /* If NOTIFY is not set, then check for completed *
-     * jobs before we print the prompt.               */
-    if (unset(NOTIFY))
-	scanjobs();
-    if (errflag)
-	return;
-
     if (isset(PROMPTSP) && isset(PROMPTCR)) {
 	/* The PROMPT_SP heuristic will move the prompt down to a new line
 	 * if there was any dangling output on the line (assuming the terminal
@@ -702,6 +695,13 @@ preprompt(void)
 	free(str);
     }
 
+    /* If NOTIFY is not set, then check for completed *
+     * jobs before we print the prompt.               */
+    if (unset(NOTIFY))
+	scanjobs();
+    if (errflag)
+	return;
+
     /* If a shell function named "precmd" exists, *
      * then execute it.                           */
     callhookfunc("precmd", NULL);