1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

The PROMPT_SP output should be prior to the job notifications too.

This commit is contained in:
Wayne Davison 2005-07-27 18:44:26 +00:00
parent 4c437b4f3e
commit 4714ce0856

View file

@ -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);