mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
Recognise new parts in partial word completion
This commit is contained in:
parent
0956e0339a
commit
b5019ef4e5
1 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,6 @@ add_match_part(Cmatcher m, char *l, char *w, int wl,
|
||||||
|
|
||||||
p = bld_parts(s, sl, osl, &lp);
|
p = bld_parts(s, sl, osl, &lp);
|
||||||
|
|
||||||
p->flags &= ~CLF_NEW;
|
|
||||||
if (m && (m->flags & CMF_LEFT)) {
|
if (m && (m->flags & CMF_LEFT)) {
|
||||||
lp->flags |= CLF_SUF;
|
lp->flags |= CLF_SUF;
|
||||||
lp->suffix = lp->prefix;
|
lp->suffix = lp->prefix;
|
||||||
|
@ -384,7 +383,8 @@ add_match_part(Cmatcher m, char *l, char *w, int wl,
|
||||||
lp->line = l; lp->llen = wl;
|
lp->line = l; lp->llen = wl;
|
||||||
lp->word = w; lp->wlen = wl;
|
lp->word = w; lp->wlen = wl;
|
||||||
lp->orig = o; lp->olen = ol;
|
lp->orig = o; lp->olen = ol;
|
||||||
lp->flags &= ~CLF_NEW;
|
if (o || ol)
|
||||||
|
lp->flags &= ~CLF_NEW;
|
||||||
|
|
||||||
/* Finally, put the new parts on the list. */
|
/* Finally, put the new parts on the list. */
|
||||||
if (matchlastpart)
|
if (matchlastpart)
|
||||||
|
|
Loading…
Reference in a new issue