Skip to content

Commit

Permalink
fix(povray): process each element against patsub_replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 24, 2023
1 parent 45d036a commit 0afc2e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion completions/povray
Expand Up @@ -37,7 +37,10 @@ _comp_cmd_povray()
command grep '^[-+]I' <<<"${words[*]}"
))
_comp_compgen -Rv COMPREPLY -- -X '' -W '"${COMPREPLY[@]#[-+]I}"'
COMPREPLY=("${COMPREPLY[@]/%.pov/.$oext}")
local i
for i in "${!COMPREPLY[@]}"; do
COMPREPLY[i]=${COMPREPLY[i]/%.pov/".$oext"}
done
cur="${povcur#[-+]O}" # to confuse _comp_compgen_filedir
pfx="${povcur%"$cur"}"
_comp_compgen -a filedir $oext
Expand Down

0 comments on commit 0afc2e4

Please sign in to comment.