Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Overeager completion?
- X-seq: zsh-workers 17972
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Overeager completion?
- Date: Wed, 27 Nov 2002 08:11:56 +0100
- In-reply-to: <15541.1038221965@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20021123002553.GA16698@xxxxxxxxxxxxxxxxxx> <15541.1038221965@xxxxxxxxxx>
Hi!
Oliver Kiddle wrote:
> ...
>
> > Oops. Then, for good measure, hit ^C twice to quit the shell. :)
>
> That could be a bug. Seems to occur after any ^D used to list choices.
Indeed. I think I've tracked it down, but no patch yet. The problem is
that getkey() returns EOF and in zle_keymap.c:1289 `c' (the variable
holding the code of the character typed last) is reset to `lastc'
which, at that time, contains the ^D. So the first ^C erases the line
and the second one (where `c' ist again set to the ^D from `lastc')
makes the test in zle_main.c:655 be true -- and exit the shell.
Maybe we should zero out that `lastc' when we get a ^C around line
zle_main.c:600. But I'm not sure whether we should turn `lastc' into a
global variable or make getkey() return a special value for that...
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author