From 67d882479b61165c5d58bd72430d6009f4a7f25f Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 5 Mar 2017 22:25:33 +0000 Subject: 40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default behaviour. To reproduce: RPS1=foo ZLE_RPROMPT_INDENT=42 unset ZLE_RPROMPT_INDENT --- Src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/init.c') diff --git a/Src/init.c b/Src/init.c index c12043b88..a1162b318 100644 --- a/Src/init.c +++ b/Src/init.c @@ -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)); */ -- cgit 1.4.1