zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Disable the heuristic setting RPROMPT_INDENT to 0
@ 2015-11-19 15:18 Mikael Magnusson
  0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2015-11-19 15:18 UTC (permalink / raw)
  To: zsh-workers

I've had this disabled since it was introduced, but lately saw some
reports on IRC of it breaking, so we're better off not doing it at
all. Fortunately all the documentation still claims it always defaults
to 1.

---
 Src/init.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Src/init.c b/Src/init.c
index 22db4b3..dcce1d7 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -790,8 +790,10 @@ init_term(void)
 	    tcstr[TCCLEARSCREEN] = ztrdup("\14");
 	    tclen[TCCLEARSCREEN] = 1;
 	}
-	/* This might work, but there may be more to it */
-	rprompt_indent = ((hasam && !hasbw) || hasye || !tccan(TCLEFT));
+	rprompt_indent = 1;
+	/* The following is an attempt at a heuristic,
+	 * but it fails in some cases */
+	/* rprompt_indent = ((hasam && !hasbw) || hasye || !tccan(TCLEFT)); */
     }
     return 1;
 }
-- 
2.6.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-19 15:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 15:18 PATCH: Disable the heuristic setting RPROMPT_INDENT to 0 Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).