From ab8830e8b28923f2784de8442a2c15c1cdd1a5f6 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Tue, 25 Feb 2020 13:39:29 +0100 Subject: [PATCH] fix: add last recall for ctrl_R widget --- scripts/widgets.sh | 2 ++ 1 file changed, 2 insertions(+) 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() {