summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-09-29 22:01:50 +0000
committerClint Adams <clint@users.sourceforge.net>2007-09-29 22:01:50 +0000
commit0e62de36b417faab7675c295569c274641b2bd92 (patch)
treef9863d2dfa0aa0c122a6c7ca48ad599c82b9041e
parentba83c3a2281da7815437f2098839d966b4b2c161 (diff)
downloadzsh-0e62de36b417faab7675c295569c274641b2bd92.tar.gz
zsh-0e62de36b417faab7675c295569c274641b2bd92.zip
23860: complete patch names, omitting the .dpatch extension.
-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\)'