From 2f36613557a4d33b5706cd9335ff0a4c3b6f1c91 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 9 Sep 1999 14:10:01 +0000 Subject: zsh-workers/7747 --- Completion/Base/_first | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Completion/Base/_first') 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. -- cgit 1.4.1