1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

39981: Make compstate[to_end] skip suffix and hidden suffix, but not ignored suffix.

Motivated by 39930.
This commit is contained in:
Daniel Shahaf 2016-11-19 06:23:56 +00:00
parent 45c92778c6
commit 1f5c734f5e
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2016-11-21 Daniel Shahaf <d.s@daniel.shahaf.name>
* 39981: Src/Zle/compresult.c: Make compstate[to_end] skip
suffix and hidden suffix, but not ignored suffix.
2016-11-20 Oliver Kiddle <opk@zsh.org>
* 39986, 39989: Src/Zle/zle.h, Src/Zle/zle_keymap.c,

View file

@ -1174,6 +1174,10 @@ do_single(Cmatch m)
zlemetacs = minfo.end;
if (zlemetacs + m->qisl == lastend)
zlemetacs += minfo.insc;
/* Advance CURSOR past compadd -s/-S suffixes. */
zlemetacs += strlen(psuf);
zlemetacs += m->suf ? strlen(m->suf) : 0;
}
{
Cmatch *om = minfo.cur;