From a82a0013915ce5aa925e76423426c9da1687acff Mon Sep 17 00:00:00 2001 From: 依云 Date: Wed, 2 Apr 2025 00:12:01 +0800 Subject: fix(zsh): fix an error introduced earilier with support for bracketed paste mode (#2651) An extra newline was written to the terminal and caused issues. See https://github.com/atuinsh/atuin/pull/2646#issuecomment-2757157442. --- crates/atuin/src/shell/atuin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/atuin/src/shell/atuin.zsh b/crates/atuin/src/shell/atuin.zsh index be29de27..5f03c817 100644 --- a/crates/atuin/src/shell/atuin.zsh +++ b/crates/atuin/src/shell/atuin.zsh @@ -61,7 +61,7 @@ _atuin_search() { zle reset-prompt # re-enable bracketed paste # shellcheck disable=SC2154 - echo ${zle_bracketed_paste[1]} >/dev/tty + echo -n ${zle_bracketed_paste[1]} >/dev/tty if [[ -n $output ]]; then RBUFFER="" -- cgit v1.3.1