mirror of
https://github.com/joshskidmore/zsh-fzf-history-search.git
synced 2026-09-10 07:06:21 -04:00
strip asterisk from history line number
This commit is contained in:
parent
63543f8120
commit
aa0f197c49
|
|
@ -69,7 +69,7 @@ fzf_history_search() {
|
||||||
local ret=$?
|
local ret=$?
|
||||||
if [ -n "$candidates" ]; then
|
if [ -n "$candidates" ]; then
|
||||||
if (( $CANDIDATE_LEADING_FIELDS != 1 )); 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'
|
printf '%s' "${${(As: :)MATCH}[${CANDIDATE_LEADING_FIELDS},-1]}" | sed 's/%/%%/g'
|
||||||
)}"
|
)}"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue