zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: more math completion
@ 2015-07-25 20:46 Peter Stephenson
  2015-07-26 18:21 ` Axel Beckert
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 2015-07-25 20:46 UTC (permalink / raw)
  To: Zsh hackers list

% 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;
 }
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-26 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25 20:46 PATCH: more math completion Peter Stephenson
2015-07-26 18:21 ` Axel Beckert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).