37161: Disable the heuristic setting RPROMPT_INDENT to 0

This commit is contained in:
Mikael Magnusson 2015-11-19 16:15:42 +01:00
parent 4add525883
commit ae0420c46a
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2015-11-20 Mikael Magnusson <mikachu@gmail.com>
* 37161: Src/init.c: Disable the heuristic setting RPROMPT_INDENT
to 0
2015-11-20 Peter Stephenson <p.stephenson@samsung.com>
* 37170: Functions/Zle/smart-insert-last-word: suppress

View file

@ -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;
}