diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/input.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 899ff08e5..bffa104bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2015-07-25 Peter Stephenson <p.w.stephenson@ntlworld.com> + * 35910: Src/input.c: Don't add to raw lex buffer if lex + stopped. Fixes crash on completion of incomplete + math expresion e.g. '$((3*4)'. + * 35909: Src/utils.c: fix $((...) completion in _expand by normalising quoting of the math expression containing tokens. diff --git a/Src/input.c b/Src/input.c index 613f89a25..1efabadeb 100644 --- a/Src/input.c +++ b/Src/input.c @@ -222,7 +222,8 @@ ingetc(void) if (inputline()) break; } - zshlex_raw_add(lastc); + if (!lexstop) + zshlex_raw_add(lastc); return lastc; } |