mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default behaviour.
To reproduce:
RPS1=foo
ZLE_RPROMPT_INDENT=42
unset ZLE_RPROMPT_INDENT
This commit is contained in:
parent
a5482971b7
commit
67d882479b
3 changed files with 23 additions and 2 deletions
|
|
@ -790,7 +790,7 @@ init_term(void)
|
|||
tcstr[TCCLEARSCREEN] = ztrdup("\14");
|
||||
tclen[TCCLEARSCREEN] = 1;
|
||||
}
|
||||
rprompt_indent = 1;
|
||||
rprompt_indent = 1; /* If you change this, update rprompt_indent_unsetfn() */
|
||||
/* The following is an attempt at a heuristic,
|
||||
* but it fails in some cases */
|
||||
/* rprompt_indent = ((hasam && !hasbw) || hasye || !tccan(TCLEFT)); */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue