mirror of
https://github.com/skywind3000/z.lua
synced 2026-06-16 11:08:51 +00:00
Return 0 is the default
This commit is contained in:
@@ -1886,9 +1886,10 @@ if [ "$TERM" != "dumb" ] && command -v fzf >/dev/null 2>&1; then
|
||||
local selected=$(_zlua | sed "s|$HOME|\~|" | $zlua_fzf --query "$query")
|
||||
|
||||
if [ -n "$selected" ]; then
|
||||
COMPREPLY=("$selected")
|
||||
return 0
|
||||
COMPREPLY=( "$selected" )
|
||||
fi
|
||||
|
||||
printf '\e[5n'
|
||||
}
|
||||
|
||||
complete -o bashdefault -o nospace -F _zlua_fzf_complete ${_ZL_CMD:-z}
|
||||
|
||||
Reference in New Issue
Block a user