1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

fix completion after var+= to use value context (16418)

This commit is contained in:
Sven Wischnowsky 2002-01-08 15:33:23 +00:00
parent 2ed74b89ea
commit 3013e98ca4
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2002-01-08 Sven Wischnowsky <wischnow@zsh.org>
* 16418: Src/lex.c, Src/Zle/zle_tricky.c: fix completion after
var+= to use value context
* 16417: Src/Zle/computil.c: don't report _arguments-specs more
than once (not even shared options with multiple sets)

View file

@ -1215,6 +1215,8 @@ get_comp_string(void)
zsfree(varname);
varname = ztrdup(tt);
*s = sav;
if (*s == '+')
s++;
if (skipparens(Inbrack, Outbrack, &s) > 0 || s > tt + cs - wb) {
s = NULL;
inwhat = IN_MATH;

View file

@ -1140,7 +1140,8 @@ gettokstr(int c, int sub)
skipparens(Inbrack, Outbrack, &t);
}
}
if (*t == '+') t++;
if (*t == '+')
t++;
if (t == bptr) {
e = hgetc();
if (e == '(' && incmdpos) {