From: Jesper Holmberg <jeho5791@student.uu.se>
To: Zsh-users List <zsh-users@sunsite.dk>
Subject: insert-last-word makes space disappear
Date: Fri, 13 Aug 2004 10:23:19 +0200 [thread overview]
Message-ID: <20040813082318.GN1191@localhost> (raw)
Here's a problem I've seen for a long time, but never gotten around
to reporting. It seems like a bug to me, but perhaps I have something
configured incorrectly.
I use the new completion system with <TAB> bound to menu-complete, on zsh
4.2.0.
What happens is that the combination of menu-complete and insert-last-word
(bound to alt-.) sometimes makes a vital space disappear on the command
line. I'll give an example:
% ls last.avi
last.avi
% mpl<TAB>
zsh now completes 'mpl' to 'mplayer ', which leaves me with the command
line:
% mplayer
with a space after 'mplayer'.
Now, if I hit alt-. (insert-last-word), this is the result:
% mplayerlast.avi
The space that was after 'mplayer' has been eaten!
It seems to me that this only happens when the menu-complete has something
unambiguous to complete, i.e. when 'mplayer' is the only completion of
'mpl'. If there had been more than one alternative, the space would not
have been added after 'mplayer', and the problem wouldn't have manifested
itself.
Is this a bug?
TIA,
Jesper
next reply other threads:[~2004-08-13 8:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-13 8:23 Jesper Holmberg [this message]
2004-08-13 23:32 ` Andy Spiegl
2004-08-14 7:39 ` Bart Schaefer
2004-08-16 6:46 ` Jesper Holmberg
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=20040813082318.GN1191@localhost \
--to=jeho5791@student.uu.se \
--cc=zsh-users@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).