From aa0f197c499dd5acf18bc3fe9898081775af8cd5 Mon Sep 17 00:00:00 2001 From: Emma Bukacek Date: Sun, 2 Nov 2025 18:15:13 -0800 Subject: [PATCH] strip asterisk from history line number --- zsh-fzf-history-search.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-fzf-history-search.zsh b/zsh-fzf-history-search.zsh index 6e40fa7..9892fad 100644 --- a/zsh-fzf-history-search.zsh +++ b/zsh-fzf-history-search.zsh @@ -69,7 +69,7 @@ fzf_history_search() { local ret=$? if [ -n "$candidates" ]; then if (( $CANDIDATE_LEADING_FIELDS != 1 )); then - BUFFER="${candidates[@]/(#m)[0-9 \-\:]##/$( + BUFFER="${candidates[@]/(#m)[0-9 \-\:\*]##/$( printf '%s' "${${(As: :)MATCH}[${CANDIDATE_LEADING_FIELDS},-1]}" | sed 's/%/%%/g' )}" else