mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-23 00:34:20 +01:00
fix(enter_accept): clear old cmd snippet (#1350)
This commit is contained in:
parent
2066778780
commit
6b20f89191
@ -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 New Issue
Block a user