fix(enter_accept): clear old cmd snippet (#1350)

This commit is contained in:
Patrick Jackson 2023-10-28 12:57:08 -06:00 committed by GitHub
parent 2066778780
commit 6b20f89191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,8 @@ __atuin_history() {
eval "$HISTORY"
_atuin_precmd
echo
READLINE_LINE=""
READLINE_POINT=${#READLINE_LINE}
else
READLINE_LINE=${HISTORY}
READLINE_POINT=${#READLINE_LINE}

View File

@ -31,6 +31,7 @@ function _atuin_search
# Allow space for repainting the prompt, this will work for prompts up to 2 lines
echo
echo
commandline -r ""
else
commandline -r "$h"
end