From ca585f812b02071cc261fb9dbe463bab6f8be602 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 15 Jan 2001 09:11:31 +0000 Subject: add `services', allowing easier re-use of (parts of) completion functions (13346) --- Completion/User/_lp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/User/_lp') diff --git a/Completion/User/_lp b/Completion/User/_lp index a81d348bb..b556f1bf5 100644 --- a/Completion/User/_lp +++ b/Completion/User/_lp @@ -5,7 +5,7 @@ local expl ret=1 printer list disp strs shown if compset -P -P || [[ "$words[CURRENT-1]" = -P ]]; then _printers else - if [[ "${words[1]:t}" = (lpq|lprm) ]]; then + if [[ "$service" = (lpq|lprm) ]]; then if [[ "$words" = *-P* ]]; then printer=(-P "${${words##*-P( |)}%% *}") else -- cgit 1.4.1