Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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,HTML_MESSAGE,
	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=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=/CcYlIYGf4xmOFd3NxOtohsaVBDlNQAEqMwi0TgMDew=;
        b=Q1Q6MOSHiLX7nKWyRH1c7k7eWCEuhKCP5UBfO+TStQwbDvAZ1sMDynuMXAb99p/MCp
         iJbN2V+AmSPJx1XA83ZNzq7gqVawQNoC8HV5pyK+voCfqwOcceqlAfCUr91fNelFYy1Q
         M26vJ8UCdovFJWET7kvLMuFMotvNnB4WullstOz4gW3XY5aozrJodH98wFjo2yRUMmho
         3CdwoBaAEdDyTB/UfzsA/OqARaa3CFriRmFdRS17hTMzPGbpSqIRRVyKRXoZhvGJI2hA
         pKDRMQyM9wgG2ShpmbO5JSC7bWwFQPODJRxTUCoIwPcT9oNiUzZwbWz2LhhutNO8gxVl
         wC6g==
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:date
         :message-id:subject:from:to:cc:content-type;
        bh=/CcYlIYGf4xmOFd3NxOtohsaVBDlNQAEqMwi0TgMDew=;
        b=J0PRzUpUK4M59e9vqhjC/WtBycVBx9keHxbhUP1D9GaYVv5BC9PfbNkqmiq7z4sL6U
         O+w76fImdGVtOc43RqE/7rp38sa+VcJgm0gS2fUv1YPclry6mhxXqQnTIEPs3kdP7pkv
         Llmm/fiDgY8jr41MRZbUZNV6GishDriAWoR4U6ThkdFn1mTBisf0W4yBtXPGceY3WXIw
         YP2euj+5Z/k9aMuqJuKFinaQrZ97hFu4KIKPToasBG8FIXBzMHLYZIbb85ogxjXZIaKE
         qTuBZ5n0ainKX8JesQhwwNWSJYMZhKgbtEKCvD+1/IbJ1FxcjA9/qskZXvf+2fYmJE5Y
         rsuA==
X-Gm-Message-State: AG10YOTyc0o87CU8IeJ6SzXPA7OLJ0cPTqeH1O8bwMjq961FC2GsGi8hJuL2sevtyL9sNZgGZVJ0xG9kwsrj3A==
MIME-Version: 1.0
X-Received: by 10.28.10.7 with SMTP id 7mr12755222wmk.57.1455134635574; Wed,
 10 Feb 2016 12:03:55 -0800 (PST)
In-Reply-To: <CAPdr91afVtwZnv3o9FKqfgMeYg_1Tz9R-ujTVhJUwu4ErNtFng@mail.gmail.com>
References: <CAPdr91afVtwZnv3o9FKqfgMeYg_1Tz9R-ujTVhJUwu4ErNtFng@mail.gmail.com>
Date: Wed, 10 Feb 2016 12:03:55 -0800
Message-ID: <CAH+w=7bHKAOiYgC_7mjhovu552TSRa+rZHxO+vLVEwWJaq2pVw@mail.gmail.com>
Subject: Re: Segfault on completion with interactive mode
From: Bart Schaefer <schaefer@brasslantern.com>
To: =?UTF-8?Q?=C3=93scar_Garc=C3=ADa_Amor?= <ogarcia@connectical.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Content-Type: multipart/alternative; boundary=001a114426b80ddc31052b6fef2b
X-Seq: zsh-workers 37942

--001a114426b80ddc31052b6fef2b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Feb 10, 2016 8:40 AM, "=C3=93scar Garc=C3=ADa Amor" <ogarcia@connectical=
.com>
wrote:
>
> 4. Press tab to show options (interactive mode appears)
> 5. Write a letter that not mach with any option (to generate a completion
> warning)
> 6. Press backspace
>
> Tachan! zsh: segmentation fault (core dumped)

Hmm.  So, complistmatches() is called with an empty list of completions to
cause the message to be displayed.  It's then called again on backspace to
erase the message and draw a new list, but it chokes on the empty listing.

I can stop the coredump by doing nothing when the list is empty, but then
the message isn't displayed either.

--001a114426b80ddc31052b6fef2b--

