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:
parent
4c437b4f3e
commit
4714ce0856
1 changed files with 7 additions and 7 deletions
14
Src/utils.c
14
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);
|
||||
|
|
Loading…
Reference in a new issue