* 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
* Re: PATCH: more math completion
2015-07-25 20:46 PATCH: more math completion Peter Stephenson
@ 2015-07-26 18:21 ` Axel Beckert
0 siblings, 0 replies; 2+ messages in thread
From: Axel Beckert @ 2015-07-26 18:21 UTC (permalink / raw)
To: zsh-workers
Hi Peter,
On Sat, Jul 25, 2015 at 09:46:06PM +0100, Peter Stephenson wrote:
> % 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.
Thanks for that fix! I just ran into this issue when preparing a
Debian zsh package with the two $((…)) completions fixed. I'll include
that one, too.
Looks like another reason for a 5.0.9 rather soon as this one is
present in 5.0.8, too.
P.S.: Also thanks for the pointer to the fix for segfault reported in
Debian against 5.0.8.
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail)
X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)
^ 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).