1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

36243: fix a few problems of "_pids -m pattern"

This commit is contained in:
Jun-ichi Takimoto 2015-08-20 22:15:14 +09:00
parent a69994ede1
commit a85ba2e719
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-08-20 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 36243: Completion/Unix/Type/_pids: fix a few problems of
"_pids -m pattern"
2015-08-19 Daniel Shahaf <d.s@daniel.shahaf.name>
* 36247: Completion/Unix/Command/_git: __git_objects: Complete

View file

@ -9,7 +9,7 @@ _tags processes || return 1
if [[ "$1" = -m ]]; then
all=()
match="*[[:blank:]]${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*[/[:blank:]]${2}*"
match="(*[[:blank:]]|)${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*(/|[[:blank:]]-(#c,1))${2}([[:blank:]]*|)"
shift 2
elif [[ "$PREFIX$SUFFIX" = ([%-]*|[0-9]#) ]]; then
all=()