about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Debian/Command/_dpatch-edit-patch4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9db72c329..180667c68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-09-29  Clint Adams  <clint@zsh.org>
 
+	* 23860: Completion/Debian/Command/_dpatch-edit-patch: complete
+	patch names, omitting the .dpatch extension.
+
 	* 23854: Completion/Debian/Command/_dpatch-edit-patch: complete
 	colon-separated path after -P, other minor tweaks.
 
diff --git a/Completion/Debian/Command/_dpatch-edit-patch b/Completion/Debian/Command/_dpatch-edit-patch
index 7242f6bc5..2c463066a 100644
--- a/Completion/Debian/Command/_dpatch-edit-patch
+++ b/Completion/Debian/Command/_dpatch-edit-patch
@@ -13,5 +13,5 @@ _arguments \
   '(-l --shell)'{-l,--shell=}'[shell to be invoked]:shell:' \
   '(-P --origtargzpath)'{-P,--origtargzpath=}'[colon-separated list of paths containing upstream tarballs, use with -b]:path to upstream tarballs:_dir_list' \
   '(-h --help)'{-h,--help}'[help text]' \
-  '1:patch name:_files -W $PWD/debian/patches -g "*.dpatch"' \
-  '2:base patch name:_files -W $PWD/debian/patches -g "*.dpatch"'
+  '1:patch name:_files -W $PWD/debian/patches -g \*.dpatch\(-.\:r\)' \
+  '2:base patch name:_files -W $PWD/debian/patches -g \*.dpatch\(-.\:r\)'