about summary refs log tree commit diff
path: root/Completion/Commands/_read_comp
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_read_comp')
-rw-r--r--Completion/Commands/_read_comp9
1 files changed, 1 insertions, 8 deletions
diff --git a/Completion/Commands/_read_comp b/Completion/Commands/_read_comp
index a956c65f7..bc6e4c3c6 100644
--- a/Completion/Commands/_read_comp
+++ b/Completion/Commands/_read_comp
@@ -26,14 +26,7 @@
 setopt localoptions extendedglob nobadpattern # xtrace promptsubst
 # local PS4='%N:%i:$((#key))> '
 
-# Took me ages to work this out.  If we're not on the first global
-# matcher specification, we mustn't do any I/O.
-if [[ compstate[matcher] -gt 1 && -z $_read_comp ]]; then
-  return 1
-fi
-
-if [[ compstate[matcher] -gt 1 ||
-  ( ${+NUMERIC} = 0 && -n $_read_comp ) ]]; then
+if [[ ${+NUMERIC} = 0 && -n $_read_comp ]]; then
   if [[ $_read_comp = _* ]]; then
     eval $_read_comp
   else