zsh-workers
 help / color / mirror / code / Atom feed
* Re:  another bug in suffix removal 3.1.5
@ 1998-11-05 16:38 Sven Wischnowsky
  1998-11-05 16:52 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Wischnowsky @ 1998-11-05 16:38 UTC (permalink / raw)
  To: zsh-workers; +Cc: greg


greg@alphatech.com wrote:

> OK, I found another one:
> 
> % mkdir foo
> % mkdir foo/bar
> % bar <Control-a> <Control-k>   # IE, get "bar" in the kill ring
> % ls f <tab>
>   -> foo/ <Control-y>
>   -> foobar                     # the slash got removed when "bar" was yanked

We had some more discussion about this on the list...

No patch for this now (I have to go soon), but this looks like yet
another missing fixsuffix() problem. And this was what I meant with my 
reply: as long as we can't be sure that every time the command line is 
changed fixsuffix() is called we probably should move all the calls
into the functions that actually modify the line (might save us from
more bug reports of this kind).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: another bug in suffix removal 3.1.5
@ 1998-11-06  7:50 Sven Wischnowsky
  1998-11-07 18:32 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Wischnowsky @ 1998-11-06  7:50 UTC (permalink / raw)
  To: zsh-workers


Peter Stephenson wrote:

> 
> Sven Wischnowsky wrote:
> > greg@alphatech.com wrote:
> > 
> > > OK, I found another one:
> > > 
> > > % mkdir foo
> > > % mkdir foo/bar
> > > % bar <Control-a> <Control-k>   # IE, get "bar" in the kill ring
> > > % ls f <tab>
> > >   -> foo/ <Control-y>
> > >   -> foobar                     # the slash got removed when "bar" was yank
> > ed
> > 
> > No patch for this now (I have to go soon), but this looks like yet
> > another missing fixsuffix() problem.
> 
> Isn't it just a case of adding ZLE_KEEPSUFFIX to the flags for yank?
> The following would be my suggestion.  Seems to work.

Probably depends on what behavior you like if there is nothing to
yank. Without your patch, the suffix is removed which is certainly
wrong. With your patch the suffix is kept and made non-auto-removable.
Personally I would prefer zsh to leave the suffix on the line and
automatically removable in whenever a zle widget doesn't change the
line and cursor position. But maybe I'm the only one who would prefer
that.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 5+ messages in thread
* another bug in suffix removal 3.1.5
@ 1998-11-05 16:18 Greg Klanderman
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Klanderman @ 1998-11-05 16:18 UTC (permalink / raw)
  To: Zsh list


OK, I found another one:

% mkdir foo
% mkdir foo/bar
% bar <Control-a> <Control-k>   # IE, get "bar" in the kill ring
% ls f <tab>
  -> foo/ <Control-y>
  -> foobar                     # the slash got removed when "bar" was yanked



greg

(please copy on replies)


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

end of thread, other threads:[~1998-11-07 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-05 16:38 another bug in suffix removal 3.1.5 Sven Wischnowsky
1998-11-05 16:52 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1998-11-06  7:50 Sven Wischnowsky
1998-11-07 18:32 ` Bart Schaefer
1998-11-05 16:18 Greg Klanderman

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