mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-12 17:11:25 +02:00
37161: Disable the heuristic setting RPROMPT_INDENT to 0
This commit is contained in:
parent
4add525883
commit
ae0420c46a
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue