From 45051d58ab773ebd65f1ec07e58d1b43587d1a4f Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 13 Jul 2001 08:09:49 +0000 Subject: make _files not use its own description if there is one from a calling function; improve -P-prefix handling in _path_files (15389) --- Completion/Unix/Type/_files | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_files') diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index a291ee786..87234eb2d 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -65,7 +65,11 @@ for def in "$pats[@]"; do if [[ "$sdef" = *:${tag}:* ]]; then descr="${(Q)sdef#*:${tag}:}" else - descr=file + if (( $opts[(I)-X] )); then + descr= + else + descr=file + fi end=yes fi -- cgit 1.4.1