From 405a94d948bbc115fd01ce9bb6c0b0c5aa2334b2 Mon Sep 17 00:00:00 2001 From: 依云 Date: Fri, 4 Apr 2025 19:29:45 +0800 Subject: fix(zsh): avoid calling user-defined widgets when searching for history position (#2670) Or those widgets may behave badly when calling them too quickly. We don't need calling them anyway as this is not considered to be user action, and if our calls fail, the history position is unchanged. Issue introduced in #1469. --- crates/atuin/src/shell/atuin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/atuin/src/shell/atuin.zsh b/crates/atuin/src/shell/atuin.zsh index 5f03c817..63b20b47 100644 --- a/crates/atuin/src/shell/atuin.zsh +++ b/crates/atuin/src/shell/atuin.zsh @@ -72,7 +72,7 @@ _atuin_search() { LBUFFER=${LBUFFER#__atuin_accept__:} zle accept-line else - zle infer-next-history && zle up-history + zle .infer-next-history && zle .up-history fi fi } -- cgit v1.3.1