File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4086,18 +4086,21 @@ get_cols() {
4086
4086
[[ " $blocks " ]] && cols+=" ${block_spaces// / ${blocks} [mnl} "
4087
4087
[[ " $blocks2 " ]] && cols+=" ${block_spaces// / ${blocks2} [mnl} "
4088
4088
4089
+ # Determine the horizontal offset of the blocks.
4090
+ case $col_offset in
4091
+ " auto" ) block_offset=" $text_padding " ;;
4092
+ * ) block_offset=" $col_offset " ;;
4093
+ esac
4094
+
4089
4095
# Add newlines to the string.
4090
4096
cols=${cols%% nl}
4091
4097
cols=${cols// nl/
4092
- [${text_padding } C${zws} }
4098
+ [${block_offset } C${zws} }
4093
4099
4094
4100
# Add block height to info height.
4095
4101
(( info_height+= block_range[1 ]> 7 ? block_height+ 2 : block_height+ 1 ))
4096
4102
4097
- case $col_offset in
4098
- " auto" ) printf ' \n\e[%bC%b\n' " $text_padding " " ${zws}${cols} " ;;
4099
- * ) printf ' \n\e[%bC%b\n' " $col_offset " " ${zws}${cols} " ;;
4100
- esac
4103
+ printf ' \n\e[%bC%b\n' " $block_offset " " ${zws}${cols} "
4101
4104
fi
4102
4105
4103
4106
unset -v blocks blocks2 cols
You can’t perform that action at this time.
0 commit comments