about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_lp2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 15448a5a2..b60a20631 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-17  Peter Stephenson  <pws@csr.com>
+
+	* 14376: Completion/Unix/Command/_lp: type with compset.
+
 2001-05-17  Bart Schaefer  <schaefer@zsh.org>
 
 	* 14375: Src/Zle/zle_main.c: Permit signals to be handled during
diff --git a/Completion/Unix/Command/_lp b/Completion/Unix/Command/_lp
index d21f970f7..e7aebb956 100644
--- a/Completion/Unix/Command/_lp
+++ b/Completion/Unix/Command/_lp
@@ -2,7 +2,7 @@
 
 local expl ret=1 printer list disp strs shown
 
-if compset -P -[dP] || [[ "$words[CURRENT-1]" = -[dP] ]]; then
+if compset -P '-[dP]' || [[ "$words[CURRENT-1]" = -[dP] ]]; then
   _printers
 else
   if [[ "$service" = (lpq|lprm) ]]; then