1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-17 21:29:48 +00:00

Return 0 is the default

This commit is contained in:
BarbUk
2019-02-10 11:48:00 +04:00
parent 61d9a73873
commit ed410cb0ce

5
z.lua
View File

@@ -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}