From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12196 invoked by alias); 10 May 2016 20:59:15 -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: 38468 Received: (qmail 14207 invoked from network); 10 May 2016 20:59:14 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=OEE6hhyS6Q6J05c+D4loGrqGdwz/OQ5wgm/BYiHd8wg=; b=12eaTepSPddVUNk0O7QB3PqH+et5In7/IrSq1uD8OIb9vJUzESva92UDnWFHjI/5Bh SLfAGbNioIvS2JJsm4ayeVLv1SYXS0skV7jqAWWCKRSilukB9tyBCRsjeWg8NzQwMm6t 1RppPKYjEBud7+6FwghATHuWAdSEsSOgnIYAE0bWIW11BVw/slRL964KAgSQv79BJhTP sqaGE1XgC824UbZugD2NFgpJHXDRjzcdgTg1ixxqaPhZ/URXf9ohMdVEnQhD1jD3HmXz 8pwXuk1BSYZK18vevekYK1/gA63RY8LsKyAQchNjuvWnYhCDLGeNg9aOs5C3LGWPl526 gwGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=OEE6hhyS6Q6J05c+D4loGrqGdwz/OQ5wgm/BYiHd8wg=; b=IyEqAcpfLRe5v4FPbzfvAwnN1Hh3QlsaD3YcTBxMe2LroFEJnXAE1Y0J7dxBZYtUWy UVu6NnkcDtgKy7O0NOdMdjYfgs8aoDDvEfRr1JUo9c7jGRVj3SDehIVoMLh5cOmlAI0k qa1ZTBSrWWEwvGB5bJUxpIlYjKYd61QMLGyIFvCkIj3/s1/83qAk6gLA1TFOrONho/Pj xkVfqVMtx3jaFO7wgi5Fa+aaBGY9GdXOGo5pWEby1RSfyRNuOthquceQ/uULxMkTeC09 oNOoT7lh5Mb73sppnQZR/b0N0YNX6C6eI2wtpEEJ43Ef5Ml/uXIdZrkSFf6tPdgCAheG Tuuw== X-Gm-Message-State: AOPr4FUITQUowIeGWK41dObcAIvquhRy2QHeTZ2HB1rQkX8gbdf8J9I4V0vsPLOVZ6g5Jw== X-Received: by 10.66.80.72 with SMTP id p8mr61654145pax.38.1462913950741; Tue, 10 May 2016 13:59:10 -0700 (PDT) From: Bart Schaefer Message-Id: <160510140002.ZM4469@torch.brasslantern.com> Date: Tue, 10 May 2016 14:00:02 -0700 In-Reply-To: <160510131355.ZM1828@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Completion in empty double-quotes generates error" (May 10, 1:13pm) References: <160330110652.ZM1432@torch.brasslantern.com> <20160401053633.GA17993@tarsus.local2> <160401181824.ZM23675@torch.brasslantern.com> <20160402032950.GA10638@tarsus.local2> <160401232021.ZM25900@torch.brasslantern.com> <160402111815.ZM1925@torch.brasslantern.com> <160406121053.ZM31877@torch.brasslantern.com> <20160510184031.GA27856@tarsus.local2> <160510131355.ZM1828@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Completion in empty double-quotes generates error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 10, 1:13pm, Bart Schaefer wrote: } } I won't have a chance to look at this for at least another 3 weeks, so Having said that, I took a guess and may have been lucky: diff --git a/Src/lex.c b/Src/lex.c index 25b372a..e36a01e 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1795,6 +1795,10 @@ gotword(void) if (zlemetacs >= nwb) { wb = nwb; we = nwe; + } else { + wb = zlemetacs + addedx; + if (we < wb) + we = wb; } lexflags = 0; } This stops the "sh -c " warning/coredump for me; I wasn't able to reproduct the "tmux new " error. The assignment to "we" seems to be entirely unnecessary, but it looks wrong to omit it.