zsh-workers
 help / color / mirror / code / Atom feed
* [rr13@mail.inf.tu-dresden.de: Bug#276187: zsh: Ineractive menu completion with tab doesnt work.]
@ 2004-10-12 15:08 Clint Adams
  2004-10-12 15:41 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Clint Adams @ 2004-10-12 15:08 UTC (permalink / raw)
  To: zsh-workers; +Cc: 276187-forwarded, 276187-submitter

I can reproduce this.  The garbage characters are predominantly NULs
with a \022 thrown in.

----- Forwarded message from Rene Reusner <rr13@mail.inf.tu-dresden.de> -----

On a sarge box i discovered the following bug with the new zsh.
I use interactive menu completion and normaly i scroll through
the items via tab, but this doesnt work on the new zsh anymore.

Description: 
I type an command, like ls, type a space
and then press tab, to get the filelist.
A menu appears with the files in this directory and the first entry
is selected.
Then normaly, i press tab again and again, to cycle through
these items. But this doesnt work anymore, the shell puts some weird 
chars in the prompt, like ^@^@^@ and i cant use tab anymore.

Example:

ls
<tab> .. to get the list, this works
<tab> .. normaly to scroll through the list, but the new zsh print some
weird characters and i cant use tab anymore.

copy from the terminal
neodym% ^@^@^@
interactive: []
0307.pdf                        < first selected item.
113240-10.jar
115738-03.zip
3com_manage.pdf


A work around is, to press some cursor keys to move around in this menu, but
the resulting completion is wrong.  ^@^ is inserted before the filename
and the resulting filename is wrong.

I also deleted the .zcompdump and started a new shell and also emptied
my .zsenv only for the important settings.
My terminal is a normal xterm.

My .zshenv is:

autoload -U compinit
compinit -C # don't perform security check
compinit -u 
zstyle ':completion:*' menu select interactive


nothing more

On the old shell on woody, Version is 4.07 the menu completion works
fine.
This bug makes the new zsh with interactive menucompletion 
nearby unusually for me.

----- End forwarded message -----


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [rr13@mail.inf.tu-dresden.de: Bug#276187: zsh: Ineractive menu completion with tab doesnt work.]
@ 2004-10-13 11:17 pws
  2004-10-13 16:01 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: pws @ 2004-10-13 11:17 UTC (permalink / raw)
  To: zsh-workers

> On a sarge box i discovered the following bug with the new zsh.
> I use interactive menu completion and normaly i scroll through
> the items via tab, but this doesnt work on the new zsh anymore.
> 
> Description: 
> I type an command, like ls, type a space
> and then press tab, to get the filelist.
> A menu appears with the files in this directory and the first entry
> is selected.
> Then normaly, i press tab again and again, to cycle through
> these items. But this doesnt work anymore, the shell puts some weird 
> chars in the prompt, like ^@^@^@ and i cant use tab anymore.

I can see the part of the code which is causing this: modline in the function
domenuselect is inconsistently handled.  At one point it gets assigned just
the combined prefix and suffix from the last completion, but everywhere else it's
assumed it's the whole line.

However, I'm not quite sure what this is supposed to do.  Evidently it's supposed to
something special, not simply  normal menu completion, but I don't really know what.
After fixing or blocking out the problem, it just does normal menucompletion, i.e.
the fact you're in ineractive completion doesn't make a difference.

pws

-- 

Whatever you Wanadoo:
http://www.wanadoo.co.uk/time/

This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-13 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-12 15:08 [rr13@mail.inf.tu-dresden.de: Bug#276187: zsh: Ineractive menu completion with tab doesnt work.] Clint Adams
2004-10-12 15:41 ` Bart Schaefer
2004-10-12 15:50   ` Clint Adams
2004-10-13 11:17 pws
2004-10-13 16:01 ` Bart Schaefer

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).