about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-07-27 18:44:26 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-07-27 18:44:26 +0000
commit4714ce08563a859077c4daadd31323c6320a56ad (patch)
tree4fb36b4fb28b78a6f7709fed696440fee95a6fc8
parent4c437b4f3e91574e8bdf4b31798fd90a0b1b3e55 (diff)
downloadzsh-4714ce08563a859077c4daadd31323c6320a56ad.tar.gz
zsh-4714ce08563a859077c4daadd31323c6320a56ad.tar.xz
zsh-4714ce08563a859077c4daadd31323c6320a56ad.zip
The PROMPT_SP output should be prior to the job notifications too.
-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);