diff options
Diffstat (limited to 'Completion/Commands/_correct_filename')
-rw-r--r-- | Completion/Commands/_correct_filename | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Commands/_correct_filename b/Completion/Commands/_correct_filename index 27295738c..72bac5f1b 100644 --- a/Completion/Commands/_correct_filename +++ b/Completion/Commands/_correct_filename @@ -45,7 +45,7 @@ fi if [[ -z $testcmd && -e "$file" ]] || { [[ -n $testcmd ]] && whence "$file" >&/dev/null }; then if [[ -n $WIDGET ]]; then - compadd -QUf -i "$IPREFIX" "${file/#$etilde/$tilde}" + compadd -QUf -i "$IPREFIX" -I "$ISUFFIX" "${file/#$etilde/$tilde}" [[ -n "$compstate[insert]" ]] && compstate[insert]=menu else print "$file" @@ -65,7 +65,7 @@ done (( $#trylist )) || return 1 if [[ -n $WIDGET ]]; then - compadd -QUf -i "$IPREFIX" "${trylist[@]/#$etilde/$tilde}" + compadd -QUf -i "$IPREFIX" -I "$ISUFFIX" "${trylist[@]/#$etilde/$tilde}" [[ -n "$compstate[insert]" ]] && compstate[insert]=menu else print "$IPREFIX${^trylist[@]}" |