From 1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 12 Jul 1999 17:02:40 +0000 Subject: zsh-3.1.6-test-1 --- Completion/Base/_command_names | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Completion/Base/_command_names') diff --git a/Completion/Base/_command_names b/Completion/Base/_command_names index 8f75f1a77..61fea56dd 100644 --- a/Completion/Base/_command_names +++ b/Completion/Base/_command_names @@ -2,6 +2,13 @@ local nm=$compstate[nmatches] ret=1 + +# Complete jobs in implicit fg and bg +if [[ "$PREFIX[1]" = "%" ]]; then + compgen -j -P '%' + [[ nm -ne compstate[nmatches] ]] && return +fi + compgen -c && ret=0 if [[ nm -eq compstate[nmatches] ]]; then -- cgit 1.4.1