about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_first7
-rw-r--r--Completion/Core/_path_files4
2 files changed, 6 insertions, 5 deletions
diff --git a/Completion/Base/_first b/Completion/Base/_first
index d259824cc..fc434fca7 100644
--- a/Completion/Base/_first
+++ b/Completion/Base/_first
@@ -47,15 +47,16 @@
 #         # The default is to search the last 100 lines.
 #         max=10
 #       fi
-#       # We first search in the last ten lines, then in the last
-#       # twenty lines, and so on...
+#       # We first search in the last ten words, then in the last
+#       # twenty words, and so on...
 #       while [[ i -le max ]]; do
 #         if [[ -n "$compconfig[history_sort]" ]]; then
 #           _description expl "history ($n)"
 #         else
 #           _description -V expl "history ($n)"
 #         fi
-#         if compadd "$expl[@]" -Q - "${(@)historywords:#[\$'\"]*}"; then
+#         if compadd "$expl[@]" -Q - \
+#                "${(@)${(@)historywords:#[\$'\"]*}[1,i*10]}"; then
 #           # We have found at least one matching word, so we switch
 #           # on menu-completion and make sure that no other
 #           # completion function is called by setting _compskip.
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index cbec82c8a..9b2b332b0 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -10,7 +10,7 @@ local nm=$compstate[nmatches] menu match matcher
 
 typeset -U prepaths exppaths
 
-setopt localoptions nullglob rcexpandparam
+setopt localoptions nullglob rcexpandparam globdots
 unsetopt markdirs globsubst shwordsplit nounset
 
 local sopt='-' gopt='' opt
@@ -210,7 +210,7 @@ for prepath in "$prepaths[@]"; do
     # Get the matching files by globbing.
 
     if [[ "$tpre$tsuf" = */* ]]; then
-      tmp1=( ${^tmp1}*(-D/) )
+      tmp1=( ${^tmp1}*(-/) )
     else
       tmp1=( ${^tmp1}${^~pats} )
     fi