Skip to content

Commit

Permalink
prompt: fix a bug that rprompt is not cleared when "bleopt prompt_rps…
Browse files Browse the repository at this point in the history
…1" is reset
  • Loading branch information
akinomyoga committed Aug 25, 2020
1 parent b34ad58 commit c736bd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/edit.sh
Expand Up @@ -691,6 +691,10 @@ function ble-edit/prompt/update {
LINES=$ps1_height ble-edit/prompt/.instantiate "$bleopt_rps1" confine:relative:measure-bbox "${_ble_edit_rprompt[@]:1}"
_ble_edit_rprompt=("$version" "$x" "$y" "$g" "$lc" "$lg" "$esc" "$trace_hash")
_ble_edit_rprompt_bbox=("$x1" "$y1" "$x2" "$y2")
elif [[ $_ble_edit_rprompt ]]; then
# 新しい rps1 が空の場合、前回の rps1 が残っていればクリア
_ble_edit_rprompt_bbox=()
_ble_edit_rprompt=()
fi
}

Expand Down

0 comments on commit c736bd5

Please sign in to comment.