about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_dig2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2877c86f6..c92e0c732 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-21  dana  <dana@dana.is>
+
+	* github #54: davey hathorn: Completion/Unix/Command/_dig:
+	Fix dig completion error
+
 2020-04-20  dana  <dana@dana.is>
 
 	* unposted: NEWS, README: Document zsh/system changes from
diff --git a/Completion/Unix/Command/_dig b/Completion/Unix/Command/_dig
index d2ffb0a33..5245a2964 100644
--- a/Completion/Unix/Command/_dig
+++ b/Completion/Unix/Command/_dig
@@ -89,7 +89,7 @@ if [[ -n $state ]]; then
     _wanted hosts expl 'DNS server' _hosts && ret=0;
   else
     case $#line in
-      <3->) alts+=( 'classes:query class:compadd -M "m\:{a-z}={A-Z}" - IN CS CH HS' ) ;&
+      <3->) alts+=( 'classes:query class:compadd -M "m:{a-z}={A-Z}" - IN CS CH HS' ) ;&
       2) alts+=( 'types:query type:_dns_types' ) ;;
     esac
     _alternative 'hosts:host:_hosts' $alts && ret=0