mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-08 12:01:21 +02:00
fix completion after var+= to use value context (16418)
This commit is contained in:
parent
2ed74b89ea
commit
3013e98ca4
3 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2002-01-08 Sven Wischnowsky <wischnow@zsh.org>
|
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
|
* 16417: Src/Zle/computil.c: don't report _arguments-specs more
|
||||||
than once (not even shared options with multiple sets)
|
than once (not even shared options with multiple sets)
|
||||||
|
|
||||||
|
|
|
@ -1215,6 +1215,8 @@ get_comp_string(void)
|
||||||
zsfree(varname);
|
zsfree(varname);
|
||||||
varname = ztrdup(tt);
|
varname = ztrdup(tt);
|
||||||
*s = sav;
|
*s = sav;
|
||||||
|
if (*s == '+')
|
||||||
|
s++;
|
||||||
if (skipparens(Inbrack, Outbrack, &s) > 0 || s > tt + cs - wb) {
|
if (skipparens(Inbrack, Outbrack, &s) > 0 || s > tt + cs - wb) {
|
||||||
s = NULL;
|
s = NULL;
|
||||||
inwhat = IN_MATH;
|
inwhat = IN_MATH;
|
||||||
|
|
|
@ -1140,7 +1140,8 @@ gettokstr(int c, int sub)
|
||||||
skipparens(Inbrack, Outbrack, &t);
|
skipparens(Inbrack, Outbrack, &t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (*t == '+') t++;
|
if (*t == '+')
|
||||||
|
t++;
|
||||||
if (t == bptr) {
|
if (t == bptr) {
|
||||||
e = hgetc();
|
e = hgetc();
|
||||||
if (e == '(' && incmdpos) {
|
if (e == '(' && incmdpos) {
|
||||||
|
|
Loading…
Reference in a new issue