diff options
Diffstat (limited to 'Completion/Commands')
-rw-r--r-- | Completion/Commands/_correct_filename | 4 | ||||
-rw-r--r-- | Completion/Commands/_most_recent_file | 2 |
2 files changed, 3 insertions, 3 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[@]}" diff --git a/Completion/Commands/_most_recent_file b/Completion/Commands/_most_recent_file index df35ecba7..5bd737fd2 100644 --- a/Completion/Commands/_most_recent_file +++ b/Completion/Commands/_most_recent_file @@ -19,4 +19,4 @@ if [[ $PREFIX = \~*/* ]]; then else file=($~PREFIX*$~SUFFIX(om[$NUMERIC]N)) fi -(( $#file )) && compadd -U -f -Q $file +(( $#file )) && compadd -U -i "$IPREFIX" -I "$ISUFFIX" -f -Q $file |