Skip to content

Commit f1ddf81

Browse files
committed
fix(find): don't look for -exec etc command if completing before it
Closes scop#509
1 parent ece47be commit f1ddf81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

completions/find

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ _find()
1010
local i
1111
for i in ${!words[*]}; do
1212
if [[ ${words[i]} == -@(exec|ok)?(dir) ]]; then
13+
((cword > i)) || break
1314
_command_offset $((i + 1))
1415
return
1516
fi

0 commit comments

Comments
 (0)