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" eval "$HISTORY"
_atuin_precmd _atuin_precmd
echo echo
READLINE_LINE=""
READLINE_POINT=${#READLINE_LINE}
else else
READLINE_LINE=${HISTORY} READLINE_LINE=${HISTORY}
READLINE_POINT=${#READLINE_LINE} 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 # Allow space for repainting the prompt, this will work for prompts up to 2 lines
echo echo
echo echo
commandline -r ""
else else
commandline -r "$h" commandline -r "$h"
end end