We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744602a commit 8f85887Copy full SHA for 8f85887
1 file changed
completions-core/povray.bash
@@ -31,12 +31,13 @@ _comp_cmd_povray()
31
*) oext=$defoext ;;
32
esac
33
# complete filename corresponding to previously specified +I
34
- _comp_compgen -Rv COMPREPLY -- -X '![-+]I*' -W '"${words[@]}"'
35
- _comp_compgen -Rv COMPREPLY -- -X '' -W '"${COMPREPLY[@]#[-+]I}"'
36
- local i
37
- for i in "${!COMPREPLY[@]}"; do
38
- COMPREPLY[i]=${COMPREPLY[i]/%.pov/".$oext"}
39
- done
+ if _comp_compgen -Rv COMPREPLY -- -X '![-+]I*' -W '"${words[@]}"' &&
+ _comp_compgen -Rv COMPREPLY -- -X '' -W '"${COMPREPLY[@]#[-+]I}"'; then
+ local i
+ for i in "${!COMPREPLY[@]}"; do
+ COMPREPLY[i]=${COMPREPLY[i]/%.pov/".$oext"}
+ done
40
+ fi
41
cur="${povcur#[-+]O}" # to confuse _comp_compgen_filedir
42
pfx="${povcur%"$cur"}"
43
_comp_compgen -a filedir "$oext"
0 commit comments