From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12694 invoked by alias); 6 Sep 2016 04:58:19 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39189 Received: (qmail 18675 invoked from network); 6 Sep 2016 04:58:19 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.170):SA:0(0.0/5.0):. Processed in 0.797978 secs); 06 Sep 2016 04:58:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=EiFA4LqaZMFpVqY5GNl4NcLv0JtCUzFyr8lNqDe+OUQ=; b=K3752tHM9w3GjcIgcxiUZLkHKaaZ9o8s8U0jwIzPUef2pSHHD71gI8nL4ztd6i0aNe BFwkEaeO69FW+3xXsJ9BT793/Y5l7c3P900aXpcVRKpuzC8adnOGJUGUL72MBBULRvzE itDrlXXu1UYM11SSkuxLF3GwhqEFQ048/+ogoaXbBE64MCv/B8ZpWba/gmhY4Zlvol93 emxLKTyNHm/BnF/gV6eudy97PXkoy1uk+A42o9MU5zol9wg098OIY4eIQUoHZEWGDkw6 e2mU+REMPZADhNGPDj4F9lus+6OBJX5l9+BghrZnEV4TsN03QL8wYeOzq1oHIZS04F91 XFlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=EiFA4LqaZMFpVqY5GNl4NcLv0JtCUzFyr8lNqDe+OUQ=; b=UL7WhcpdLtmcX2eKvA6A1rF90bUpZnJzYj04Qsu364Yc9LUHg+6yMofDaDD/AAaeEy DecDMsOmyBun6iHLpRXHjSSpeVUt89VPJnHg9eC2YLY9rLUEfcDa6cc/bEzSL46Ot0jm hqMlir8fk6t61EvTOu58yxqtxvMgFQfFwzH29xIIK+ud84O1dxxwUMbq+jQP5iiYhXc/ uHPPG8iwz/cDS7ShDAKiOto4aaIQujT1vpT+H8r1/XQcoSje/m5taOwEl9WqUNtg9HA1 qKFBfXcmVgsLpke9+FV1a9MVVo1WUH43b0rm/9ier9UNx9BK9PMSzmryLQHPBrbTx6lb 4W9w== X-Gm-Message-State: AE9vXwNGlnvHvoA2eRC0NatBFn9w1X1ZniDiDvInphcYcE/PGjwRAsTRhcb+I8MVxTHvWnP+GBI9pHOPD9Q6eQ== X-Received: by 10.55.170.208 with SMTP id t199mr40476714qke.151.1473137890405; Mon, 05 Sep 2016 21:58:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160905212724.1d05ed9e@ntlworld.com> References: <20160905212724.1d05ed9e@ntlworld.com> From: Bart Schaefer Date: Mon, 5 Sep 2016 21:58:10 -0700 Message-ID: Subject: Re: Crash on tab completion To: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On Mon, Sep 5, 2016 at 1:27 PM, Peter Stephenson wrote: > > I wonder if the answer to this particular question is as simple as the > following? This same test is used elswhere in lex.c. > > - if ((lexflags & LEXFLAGS_ZLE)) > + if ((lexflags & LEXFLAGS_ZLE) && !(inbufflags & INP_ALIAS)) This does stop the crash, at least under the conditions of the original bug report.