diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-19 17:01:21 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-19 17:01:21 +0300 |
commit | 148a8500c172a4a6ff74fc6a5f6c3e38818de5b9 (patch) | |
tree | 11a0b7ae6b984dcc03bc93db7aec79a8267267b8 /internal/p10k.zsh | |
parent | 3cf30a25e4cd754f6c102de2d22566072bb04f38 (diff) |
fix bugs in instant prompt
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 206ebcfe..21059708 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4840,7 +4840,10 @@ function _p9k_init_cacheable() { ) local -i i=0 - local -a left_segments=(${(@0)_p9k_line_segments_left[@]}) + # This simpler construct doesn't work on zsh-5.1 with multi-line prompt: + # + # ${(@0)_p9k_line_segments_left[@]} + local -a left_segments=(${(@0)${(pj:\0:)_p9k_line_segments_left}}) _p9k_left_join=(1) for ((i = 2; i <= $#left_segments; ++i)); do local elem=$left_segments[i] @@ -4851,7 +4854,7 @@ function _p9k_init_cacheable() { fi done - local -a right_segments=(${(@0)_p9k_line_segments_right[@]}) + local -a right_segments=(${(@0)${(pj:\0:)_p9k_line_segments_right}}) _p9k_right_join=(1) for ((i = 2; i <= $#right_segments; ++i)); do local elem=$right_segments[i] |