From b350b900ced1c62746f144eb9ae79e24599ef3e0 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Fri, 25 Aug 2023 13:27:37 -0600 Subject: [PATCH] Prevent suggestion being treated as an option for echo --- src/async.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async.zsh b/src/async.zsh index be2fa07..e57f63a 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -39,7 +39,7 @@ _zsh_autosuggest_async_request() { # Fetch and print the suggestion local suggestion _zsh_autosuggest_fetch_suggestion "$1" - echo -nE "$suggestion" + echo -nE - "$suggestion" ) # There's a weird bug here where ^C stops working unless we force a fork diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 5706cba..d3943c3 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -794,7 +794,7 @@ _zsh_autosuggest_async_request() { # Fetch and print the suggestion local suggestion _zsh_autosuggest_fetch_suggestion "$1" - echo -nE "$suggestion" + echo -nE - "$suggestion" ) # There's a weird bug here where ^C stops working unless we force a fork