Package: zsh
Version: 4.3.10-9
Severity: minor
Go into a directory with many files (so that a menu will appear for
the completion) and type "zsh4 -f", then source the following lines:
------------------------------------------------------------
zstyle ':completion:*' menu select=long
autoload -U compinit
compinit
history-search-or-expand-or-complete()
{
if [[ -z "$BUFFER" && -z "$PREBUFFER" ]] then
zle history-incremental-search-backward "$@"
else
zle expand-or-complete "$@"
fi
}
zle -N history-search-or-expand-or-complete
bindkey '\t' history-search-or-expand-or-complete
precmd() { psvar[1]=$? }
PS1="%(?..[%1v])> "
------------------------------------------------------------
Then type "ls ", [Tab] a first time (the list of possible completions
is output), [Tab] a second time (the first completion is selected and
a menu appears) and Ctrl-U to cancel.
The prompt is "[0]> ". As $? is 0, one shouldn't get that.
If one types [Return], one gets the correct prompt "> ".
Note: this bug is not reproducible with zsh-beta.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages zsh depends on:
ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib
ii libcap2 1:2.17-2 support for getting/setting POSIX.
ii libncursesw5 5.7+20090803-2 shared libraries for terminal hand
Versions of packages zsh recommends:
ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib
ii libpcre3 7.8-3 Perl 5 Compatible Regular Expressi
Versions of packages zsh suggests:
ii zsh-doc 4.3.10-9 zsh documentation - info/HTML form
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]