Should not exit zsh when 'set -u' is set

Close #7
main
Junegunn Choi 2 years ago
parent d9c0458ba0
commit 84dd4de929
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -221,7 +221,7 @@ _fzf_git_each_ref() {
awk '{print $2}' awk '{print $2}'
} }
if [[ -n $BASH_VERSION ]]; then if [[ -n "${BASH_VERSION:-}" ]]; then
__fzf_git_init() { __fzf_git_init() {
bind '"\er": redraw-current-line' bind '"\er": redraw-current-line'
local o local o
@ -230,7 +230,7 @@ if [[ -n $BASH_VERSION ]]; then
bind '"\C-g'${o:0:1}'": "$(_fzf_git_'$o')\e\C-e\er"' bind '"\C-g'${o:0:1}'": "$(_fzf_git_'$o')\e\C-e\er"'
done done
} }
elif [[ -n $ZSH_VERSION ]]; then elif [[ -n "${ZSH_VERSION:-}" ]]; then
__fzf_git_join() { __fzf_git_join() {
local item local item
while read item; do while read item; do

Loading…
Cancel
Save