From c46f42306cc364b1eed018b9dee22d80453ed20f Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Fri, 17 Mar 2023 02:00:42 +0900 Subject: [PATCH] edit: restore "PS1" while processing "bind -x" --- ble-edit.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ble-edit.sh b/ble-edit.sh index ea3ed1ca..c7469964 100644 --- a/ble-edit.sh +++ b/ble-edit.sh @@ -7315,9 +7315,11 @@ function ble/widget/.EDIT_COMMAND { local command=$1 local READLINE_LINE=$_ble_edit_str local READLINE_POINT=$_ble_edit_ind + ble-edit/restore-PS1 ble/term/leave-for-widget builtin eval -- "$command"; local ext=$? ble/term/enter-for-widget + ble-edit/adjust-PS1 ble-edit/content/clear-arg ((ext==0)) || return 1