From 9ffe596f251b6b35d59da3b9e204b315d34fdfbf Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 17 Oct 1999 17:01:52 +0000 Subject: zsh-3.1.6-bart-7-2 --- Src/Zle/zle_tricky.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'Src/Zle/zle_tricky.c') diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index aa7686b64..70371b41c 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -811,7 +811,7 @@ check_param(char *s, int set, int test) *b != '=' && *b != Equals && *b != '~' && *b != Tilde) break; - if (*b == '#' || *b == Pound || *b == '+' || *b == ' ') + if (*b == '#' || *b == Pound || *b == '+') b++; e = b; @@ -6927,20 +6927,14 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) if (cc->mask & (CC_JOBS | CC_RUNNING | CC_STOPPED)) { /* Get job names. */ int i; - char *j, *jj; + char *j; for (i = 0; i < MAXJOB; i++) if ((jobtab[i].stat & STAT_INUSE) && jobtab[i].procs && jobtab[i].procs->text) { int stopped = jobtab[i].stat & STAT_STOPPED; - j = jj = dupstring(jobtab[i].procs->text); - /* Find the first word. */ - for (; *jj; jj++) - if (*jj == ' ') { - *jj = '\0'; - break; - } + j = dupstring(jobtab[i].procs->text); if ((cc->mask & CC_JOBS) || (stopped && (cc->mask & CC_STOPPED)) || (!stopped && (cc->mask & CC_RUNNING))) -- cgit 1.4.1