1
0
Fork 0
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:
Daniel Shahaf 2017-03-05 22:25:33 +00:00
parent a5482971b7
commit 67d882479b
3 changed files with 23 additions and 2 deletions

View file

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