diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-24 14:01:54 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-24 14:01:54 +0000 |
commit | 14810d6df13e0564a606b74e4c4e918e80862e25 (patch) | |
tree | 0e24a6c6b0226a90bdf8398ce94b60fdc9a87b0e /Src/Zle/complist.c | |
parent | d6d4a3abfc84f0940e663cd69537789a039a7056 (diff) | |
download | zsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.gz zsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.xz zsh-14810d6df13e0564a606b74e4c4e918e80862e25.zip |
zsh-3.1.6-test-3 dot-zsh-199907241534
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r-- | Src/Zle/complist.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 4bf3fec0e..9fe5f37cb 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -159,17 +159,15 @@ getcoldef(Listcols c, char *s) n = ++s; while (*s && *s != '=') s++; - if (!*s ) + if (!*s) return s; *s++ = '\0'; p = getcolval(s); - if (*n) { - ec = (Extcol) zhalloc(sizeof(*ec)); - ec->ext = n; - ec->col = s; - ec->next = c->exts; - c->exts = ec; - } + ec = (Extcol) zhalloc(sizeof(*ec)); + ec->ext = n; + ec->col = s; + ec->next = c->exts; + c->exts = ec; if (*p) *p++ = '\0'; return p; @@ -460,6 +458,7 @@ complistmatches(Hookdef dummy, Chdata dat) } } /* Now print the matches. */ + last_col = COL_NO - 1; g = amatches; while (g) { char **pp = g->ylist; |