Skip to content

Commit e5fd6eb

Browse files
author
adberard
committed
check if fzf_tab_compadd_hook is defined
1 parent 65fa520 commit e5fd6eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fzf-tab.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ _fzf_tab_compadd() {
9191
__tmp_value+=$'\0args\0'${(pj:\1:)_opts}
9292

9393
# Hook defined by user to alter the description of the completion
94-
fzf_tab_compadd_hook
94+
if typeset -f fzf_tab_compadd_hook > /dev/null; then
95+
fzf_tab_compadd_hook
96+
fi
9597

9698
# dscr - the string to show to users
9799
# word - the string to be inserted

0 commit comments

Comments
 (0)