Skip to content

Commit

Permalink
check if fzf_tab_compadd_hook is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
adberard committed Oct 24, 2020
1 parent 65fa520 commit e5fd6eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fzf-tab.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ _fzf_tab_compadd() {
__tmp_value+=$'\0args\0'${(pj:\1:)_opts}

# Hook defined by user to alter the description of the completion
fzf_tab_compadd_hook
if typeset -f fzf_tab_compadd_hook > /dev/null; then
fzf_tab_compadd_hook
fi

# dscr - the string to show to users
# word - the string to be inserted
Expand Down

0 comments on commit e5fd6eb

Please sign in to comment.