From 44a5513fcb3f528afb056490908d216f926497e6 Mon Sep 17 00:00:00 2001 From: Saduff <11700507+Saduff@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:44:21 -0700 Subject: [PATCH] fix(per-directory-history): print toggle message properly (#10872) --- plugins/per-directory-history/per-directory-history.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/per-directory-history/per-directory-history.zsh b/plugins/per-directory-history/per-directory-history.zsh index acbd64757..cfc4535d3 100644 --- a/plugins/per-directory-history/per-directory-history.zsh +++ b/plugins/per-directory-history/per-directory-history.zsh @@ -68,14 +68,14 @@ function per-directory-history-toggle-history() { if [[ $_per_directory_history_is_global == true ]]; then _per-directory-history-set-directory-history _per_directory_history_is_global=false - print -n "\nusing local history" + zle -I + echo "using local history" else _per-directory-history-set-global-history _per_directory_history_is_global=true - print -n "\nusing global history" + zle -I + echo "using global history" fi - zle .push-line - zle .accept-line } autoload per-directory-history-toggle-history