diff options
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_expand | 2 | ||||
-rw-r--r-- | Completion/Core/_path_files | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand index d47251c5a..44dfa4789 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -7,7 +7,7 @@ # the expansions done produce no result or do not change the original # word from the line. -setopt localoptions nullglob nonomatch +setopt localoptions nonomatch [[ _matcher_num -gt 1 ]] && return 1 diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index b9f578860..256478515 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -10,9 +10,6 @@ local nm=$compstate[nmatches] menu matcher mopts sort match mid accex fake typeset -U prepaths exppaths -setopt localoptions nullglob rcexpandparam -unsetopt markdirs globsubst shwordsplit nounset - exppaths=() # Get the options. @@ -317,7 +314,7 @@ for prepath in "$prepaths[@]"; do # Force auto-mounting. There might be a better way... - : ${^tmp1}/${PREFIX}${SUFFIX}/.(N/) + : ${^tmp1}/${PREFIX}${SUFFIX}/.(/) # Get the matching files by globbing. |