fix(enter_accept): clear old cmd snippet (#1350)
This commit is contained in:
parent
2066778780
commit
6b20f89191
2 changed files with 3 additions and 0 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue