diff --git a/scripts/widgets.sh b/scripts/widgets.sh index 335cadb..79e2cd8 100644 --- a/scripts/widgets.sh +++ b/scripts/widgets.sh @@ -126,6 +126,8 @@ __resh_widget_control_R() { BUFFER="$PREVBUFFER" fi CURSOR=${#BUFFER} + # recorded to history + __RESH_HIST_PREV_LINE=${BUFFER} } __resh_widget_arrow_up_compat() {