From 604c092a4391ae628cf4579bcbdea346fbbea086 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" --- src/edit.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/edit.sh b/src/edit.sh index e2d27f96..f453ef4a 100644 --- a/src/edit.sh +++ b/src/edit.sh @@ -7454,9 +7454,11 @@ function ble/widget/.EDIT_COMMAND { local READLINE_POINT=$_ble_edit_ind local READLINE_MARK=$_ble_edit_mark ble/widget/.hide-current-line keep-header + 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