about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Base/_regex_arguments1
-rw-r--r--Completion/Debian/_apt2
2 files changed, 1 insertions, 2 deletions
diff --git a/Completion/Base/_regex_arguments b/Completion/Base/_regex_arguments
index 428815419..1d279fc75 100644
--- a/Completion/Base/_regex_arguments
+++ b/Completion/Base/_regex_arguments
@@ -77,7 +77,6 @@ _regex_arguments () {
       if [[ "$_ra_line[_ra_p1 + 1, -1]" = *$'\''\0'\''* ]]; then
 	_message "parse failed before current word"
       else
-	: $#PREFIX - $#_ra_line + $_ra_p1 : $_ra_p2
 	_ra_left="$_ra_line[_ra_p1 + 1, _ra_p2]"
 	_ra_right="$_ra_line[_ra_p2 + 1, -1]"
 	compset -p $(( $#PREFIX - $#_ra_line + $_ra_p1 ))
diff --git a/Completion/Debian/_apt b/Completion/Debian/_apt
index 5fcea162b..ebb455e76 100644
--- a/Completion/Debian/_apt
+++ b/Completion/Debian/_apt
@@ -419,7 +419,7 @@ _apt-cache () {
     /$'dumpavail\0'/ \| \
     /$'unmet\0'/ \| \
     /$'check\0'/ \| \
-    /$'search\0'/ \| \
+    /$'search\0'/ /$'[^\0]#\0'/ :'_message "pattern"' \| \
     /$'show\0'/ /$'[^\0]#\0'/ :'_deb_packages "$expl_packages[@]" avail' \# \| \
     /$'depends\0'/ \| \
     /"[]"/ :'_tags actions && compadd "$expl_action[@]" help add gencaches showpkg stats dump dumpavail unmet check search show depends'