mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-12 01:11:27 +02:00
Overwrite PROMPT_SP string if it should remain invisible,
even with an upcoming newline.
This commit is contained in:
parent
2b361ad116
commit
d89e55fe0e
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-25 Wayne Davison <wayned@users.sourceforge.net>
|
||||||
|
|
||||||
|
* 28445: Src/utils.c: overwrite PROMPT_SP string if it
|
||||||
|
should remain invisible, even with an upcoming newline.
|
||||||
|
|
||||||
2010-11-25 Peter Stephenson <pws@csr.com>
|
2010-11-25 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* users/15580: Completion/Zsh/Function/_zsh-mime-handler,
|
* users/15580: Completion/Zsh/Function/_zsh-mime-handler,
|
||||||
|
@ -13847,5 +13852,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5127 $
|
* $Revision: 1.5128 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -1292,9 +1292,10 @@ preprompt(void)
|
||||||
countprompt(str, &w, 0, -1);
|
countprompt(str, &w, 0, -1);
|
||||||
opts[PROMPTPERCENT] = percents;
|
opts[PROMPTPERCENT] = percents;
|
||||||
zputs(str, shout);
|
zputs(str, shout);
|
||||||
for (w = (int)columns - w - !hasxn; w > 0; w--)
|
if (hasxn)
|
||||||
putc(' ', shout);
|
fprintf(shout, "%*s\r%*s\r", (int)columns - w, "", w, "");
|
||||||
putc('\r', shout);
|
else
|
||||||
|
fprintf(shout, "%*s\r", (int)columns - w - 1, "");
|
||||||
free(str);
|
free(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue