1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

make it work in ZSH 5.1

This commit is contained in:
romkatv 2019-07-16 23:47:59 +02:00
parent 00a070d5db
commit 1ed5c3f177

View file

@ -2834,7 +2834,7 @@ _p9k_init_lines() {
local -i num_lines=num_left_lines
fi
repeat num_lines; do
repeat $num_lines; do
local -i left_end=${left_segments[(i)newline]}
local -i right_end=${right_segments[(i)newline]}
_P9K_LINE_SEGMENTS_LEFT+="${(pj:\0:)left_segments[1,left_end-1]}"