diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_path_files | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 019fafbcb..6468215cc 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -400,8 +400,13 @@ compquote tmp1 tmp4 done if [[ -z "$tmp4" ]]; then - PREFIX="${opre}${osuf}" - SUFFIX="" + if [[ "$osuf" = */* ]]; then + PREFIX="${opre}${osuf}" + SUFFIX="" + else + PREFIX="${opre}" + SUFFIX="${osuf}" + fi tmp4="$testpath" compquote tmp4 tmp1 compadd -Qf -p "$linepath$tmp4" \ |