about summary refs log tree commit diff
path: root/Completion/Base/_first
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-09 14:10:01 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-09 14:10:01 +0000
commit2f36613557a4d33b5706cd9335ff0a4c3b6f1c91 (patch)
tree6bfbe3da09b06fff2864b8798fe2bac09c1526b9 /Completion/Base/_first
parent415b5f4cc2ef54943d178bef0c55b2517afc6904 (diff)
downloadzsh-2f36613557a4d33b5706cd9335ff0a4c3b6f1c91.tar.gz
zsh-2f36613557a4d33b5706cd9335ff0a4c3b6f1c91.tar.xz
zsh-2f36613557a4d33b5706cd9335ff0a4c3b6f1c91.zip
zsh-workers/7747
Diffstat (limited to 'Completion/Base/_first')
-rw-r--r--Completion/Base/_first9
1 files changed, 7 insertions, 2 deletions
diff --git a/Completion/Base/_first b/Completion/Base/_first
index 694bb8c63..ba5ef6c24 100644
--- a/Completion/Base/_first
+++ b/Completion/Base/_first
@@ -35,7 +35,7 @@
 # and hitting TAB.
 #
 #     if [[ "$PREFIX" = *,, ]]; then
-#       local max i=1
+#       local max i=1 expl
 #     
 #       PREFIX="$PREFIX[1,-2]"
 #       # If a numeric prefix is given, we use it as the number of
@@ -50,7 +50,12 @@
 #       # We first search in the last ten lines, then in the last
 #       # twenty lines, and so on...
 #       while [[ i -le max ]]; do
-#         if compgen -X "%Bhistory ($n):%b" -Q -H $(( i*10 )) ''; then
+#         if [[ -n "$compconfig[history_sort]" ]]; then
+#           _description expl "history ($n)"
+#         else
+#           _description -V expl "history ($n)"
+#         fi
+#         if compgen "$expl[@]" -Q -H $(( 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.