aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--atuin/src/shell/atuin.zsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/atuin/src/shell/atuin.zsh b/atuin/src/shell/atuin.zsh
index 44dda4fe..afff2d33 100644
--- a/atuin/src/shell/atuin.zsh
+++ b/atuin/src/shell/atuin.zsh
@@ -50,7 +50,12 @@ _atuin_search() {
}
_atuin_up_search() {
- _atuin_search --shell-up-key-binding
+ # Only trigger if the buffer is a single line
+ if [[ ! $BUFFER == *$'\n'* ]]; then
+ _atuin_search --shell-up-key-binding
+ else
+ zle up-line
+ fi
}
add-zsh-hook preexec _atuin_preexec