diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/Zle/zle_tricky.c | 2 | ||||
-rw-r--r-- | Src/lex.c | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index e603cd64d..75e7411a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index ca1a50ce1..6ecfaa885 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -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; diff --git a/Src/lex.c b/Src/lex.c index 11404a646..cb76bc7ab 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -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) { |