mirror of
https://github.com/zsh-users/zsh
synced 2024-09-29 04:35:22 +00:00
37161: Disable the heuristic setting RPROMPT_INDENT to 0
This commit is contained in:
parent
4add525883
commit
ae0420c46a
|
@ -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