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"
|
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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue