Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: more math completion
- X-seq: zsh-workers 35910
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: PATCH: more math completion
- Date: Sat, 25 Jul 2015 21:46:06 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
% echo $((3*4)<TAB>
causes a segmentation violation. Looks like we're trying to extend the
raw buffer where we've attempted (and failed) to find a math expression
when we have no business doing so.
pws
diff --git a/Src/input.c b/Src/input.c
index 613f89a..1efabad 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;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author