Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: more math completion



% 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