zsh-users
 help / color / mirror / code / Atom feed
* insert-last-word makes space disappear
@ 2004-08-13  8:23 Jesper Holmberg
  2004-08-13 23:32 ` Andy Spiegl
  2004-08-14  7:39 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Jesper Holmberg @ 2004-08-13  8:23 UTC (permalink / raw)
  To: Zsh-users List

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


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

end of thread, other threads:[~2004-08-16  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-13  8:23 insert-last-word makes space disappear Jesper Holmberg
2004-08-13 23:32 ` Andy Spiegl
2004-08-14  7:39 ` Bart Schaefer
2004-08-16  6:46   ` Jesper Holmberg

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