diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2015-11-19 16:15:42 +0100 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2015-11-20 14:33:44 +0100 |
commit | ae0420c46a756116fc9a325596275701678d3485 (patch) | |
tree | 03db50a180c61835dd1e5f2ff3cbab0bab26a4cf | |
parent | 4add5258834ffbbf3e26ef25195a90b6004ca0bf (diff) | |
download | zsh-ae0420c46a756116fc9a325596275701678d3485.tar.gz zsh-ae0420c46a756116fc9a325596275701678d3485.tar.xz zsh-ae0420c46a756116fc9a325596275701678d3485.zip |
37161: Disable the heuristic setting RPROMPT_INDENT to 0
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/init.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 33c05680f..a11455b93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Src/init.c b/Src/init.c index 22db4b3b2..dcce1d7ce 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; } |