From cda381d3f347de5999b90e736d0417d416de6b54 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Mon, 17 Jan 2022 14:03:18 -0800 Subject: [PATCH] theme/powerline-multiline: harmonize `powerline.base.bash` files --- themes/powerline-multiline/powerline-multiline.base.bash | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/powerline-multiline/powerline-multiline.base.bash b/themes/powerline-multiline/powerline-multiline.base.bash index b956cb15d7..64360e110a 100644 --- a/themes/powerline-multiline/powerline-multiline.base.bash +++ b/themes/powerline-multiline/powerline-multiline.base.bash @@ -8,12 +8,10 @@ function __powerline_last_status_prompt { } function __powerline_right_segment { - local OLD_IFS="${IFS}" - IFS="|" - local params=($1) - IFS="${OLD_IFS}" - local padding=0 + local -a params + IFS="|" read -ra params <<< "${1}" local pad_before_segment=" " + local padding=0 if [[ "${SEGMENTS_AT_RIGHT}" -eq 0 ]]; then if [[ "${POWERLINE_COMPACT_AFTER_LAST_SEGMENT}" -ne 0 ]]; then