zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: pid completion from gdb
@ 2015-06-19 14:57 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2015-06-19 14:57 UTC (permalink / raw)
  To: Zsh workers

Completion of pids is not working correctly after gdb's --pid= option.
This is in the case where it uses compadd -U, it doesn't allow for
IPREFIX. I'm not sure what the reason for compadd not doing this itself
would be.

Oliver

diff --git a/Completion/Unix/Type/_pids b/Completion/Unix/Type/_pids
index cf90005..dd8ef44 100644
--- a/Completion/Unix/Type/_pids
+++ b/Completion/Unix/Type/_pids
@@ -15,7 +15,7 @@ elif [[ "$PREFIX$SUFFIX" = ([%-]*|[0-9]#) ]]; then
   all=()
   match="(*[[:blank:]]|)${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*"
 else
-  all=(-U)
+  all=(-P "$IPREFIX" -S "$ISUFFIX" -U)
   match="*[[:blank:]]*[[/[:blank:]]$PREFIX*$SUFFIX*"
   nm="$compstate[nmatches]"
 fi


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-19 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 14:57 PATCH: pid completion from gdb Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).