zsh-workers
 help / color / mirror / code / Atom feed
From: Andrey Borzenkov <arvidjaar@newmail.ru>
To: zsh-workers@sunsite.dk
Subject: Re: 4.3.9: frequent crashes in completion menu selection
Date: Sun, 18 Jan 2009 14:56:05 +0300	[thread overview]
Message-ID: <200901181456.07375.arvidjaar@newmail.ru> (raw)
In-Reply-To: <237967ef0901180352o492d99a9k9e067fefec7dea83@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]

On 18 января 2009 14:52:15 Mikael Magnusson wrote:
> 2009/1/18 Andrey Borzenkov <arvidjaar@newmail.ru>:
> > On 8 января 2009 15:30:33 Peter Stephenson wrote:
> >> Andrey Borzenkov wrote:
> >> > I hit it quite often on Mandriva cooker; I do not see any
> >> > obvious post-4.3.9 commits dealing with crashes in this area.
> >> > This usually happens during menu selection browsing file system.
> >>
> >> There's probably not a cat's chance in hell of getting anywhere
> >> with this (given the code it affects) unless it can be reproduced
> >> easily.
> >
> > The following seems to do it here:
> >
> > mkdir /tmp/u{1,2}/w{1,2}
> > {pts/1}% zsh -f
> > cooker% autoload compinit; compinit
> > cooker% zmodload zsh/complist
> > cooker% zstyle ':completion:*' menu 'select=0'
> > cooker% bindkey -M menuselect "/" accept-and-infer-next-history
> > cooker% setopt menucomplete
> > cooker% zstyle ':completion:*' format Completing %d
> > cooker% ls /tmp/uTAB
> >
> > Now you get menu selection; press two times '/' to get "Completing
> > 'files'" (at /tmp/u1/w1/ line contents); now press undo (^_) until
> > you get empty line; press RETURN; press 'ls /tmp/uTAB'. Zsh
> > crashes.
> >
> > For some reasons crucial point is setting "format". Not only can I
> > not make it crash without this; it seems to change the undo
> > behaviour as well - pressing undo multiples times with and without
> > "format" set cycles through *different* line contents.
>
> While it doesn't explain the crash, I'm pretty sure that should be
> zstyle ':completion:*' format 'Completing %d'

This was copy'n'paste from 'zstyle -L' output. If this is wrong, zstyle 
-L should be fixed.

Besides, it seems to actually work - I do get "Completing 'files'" which 
pretty much complies with format setting :)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-01-18 11:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08 12:26 Andrey Borzenkov
2009-01-08 12:30 ` Peter Stephenson
2009-01-18 11:47   ` Andrey Borzenkov
2009-01-18 11:52     ` Mikael Magnusson
2009-01-18 11:56       ` Andrey Borzenkov [this message]
2009-01-18 19:24     ` Richard Hartmann
2009-01-18 23:47       ` Bart Schaefer
2009-01-20 10:39         ` Peter Stephenson
2009-01-08 15:58 ` Richard Hartmann
2009-01-08 16:02   ` Andrey Borzenkov
2009-01-08 17:55     ` Richard Hartmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901181456.07375.arvidjaar@newmail.ru \
    --to=arvidjaar@newmail.ru \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).