diff options
| author | 依云 <lilydjwg@gmail.com> | 2025-04-04 19:29:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-04 12:29:45 +0100 |
| commit | 405a94d948bbc115fd01ce9bb6c0b0c5aa2334b2 (patch) | |
| tree | 8d875af77fedb02d4a4233166d7bee94058af134 | |
| parent | Revert "chore: update to rust 1.86 (#2666)" (#2667) (diff) | |
| download | atuin-405a94d948bbc115fd01ce9bb6c0b0c5aa2334b2.zip | |
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.
| -rw-r--r-- | crates/atuin/src/shell/atuin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
