about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-03-05 22:25:33 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-03-08 10:04:44 +0000
commit67d882479b61165c5d58bd72430d6009f4a7f25f (patch)
tree663cc16691faa65dbe5b5be0524607a133f3cfc2 /Src/init.c
parenta5482971b7ec62f2dc773cf75338865377ada6bf (diff)
downloadzsh-67d882479b61165c5d58bd72430d6009f4a7f25f.tar.gz
zsh-67d882479b61165c5d58bd72430d6009f4a7f25f.tar.xz
zsh-67d882479b61165c5d58bd72430d6009f4a7f25f.zip
40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default behaviour.
To reproduce:

    RPS1=foo
    ZLE_RPROMPT_INDENT=42
    unset ZLE_RPROMPT_INDENT
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c2
1 files changed, 1 insertions, 1 deletions
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)); */