File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ for l in "${LINES[@]+"${LINES[@]}"}"; do
4444done
4545
4646# Bubble tail ┬ lands at the center of the center column (0-indexed TAIL_COL).
47- # Formula: CHAR_SIDE_WIDTH + CHAR_CENTER_WIDTH/2. Default 5+4=9 → LEFT_DASHES=8.
47+ # Formula: CHAR_SIDE_WIDTH + CHAR_CENTER_WIDTH/2. Default 5+4=9 → LEFT_DASHES=7.
48+ # Bubble lines have a leading space before ╰, so LEFT_DASHES = TAIL_COL - 2.
4849_TAIL_COL=$(( ${CHAR_SIDE_WIDTH:- 5} + (${CHAR_CENTER_WIDTH:- 8} / 2 ) ))
49- _LEFT_DASHES=$(( _TAIL_COL - 1 ))
50+ _LEFT_DASHES=$(( _TAIL_COL - 2 ))
5051_MIN_INNER=$(( _LEFT_DASHES + 2 )) # guarantees at least 1 dash right of junction
5152INNER=$(( MAX + 2 < _MIN_INNER ? _MIN_INNER : MAX + 2 ))
5253TOP_BORDER=$( printf ' ─%.0s' $( seq 1 $INNER ) )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ render() { bash "$PLUGIN_ROOT/lib/render.sh" "$@"; }
1414
1515# Compute expected bubble tail strings from dimension vars.
1616_tail_col=$(( ${CHAR_SIDE_WIDTH:- 5} + (${CHAR_CENTER_WIDTH:- 8} / 2 ) ))
17- _left_dashes=$(( _tail_col - 1 ))
17+ _left_dashes=$(( _tail_col - 2 ))
1818_left_str=$( printf ' ─%.0s' $( seq 1 $_left_dashes ) )
1919_expected_tail=" ╰${_left_str} ┬"
2020_expected_short_bottom=" ╰${_left_str} ┬─╯"
You can’t perform that action at this time.
0 commit comments