Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: another bug in suffix removal 3.1.5
- X-seq: zsh-workers 4564
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx, greg@xxxxxxxxxxxxx
- Subject: Re: another bug in suffix removal 3.1.5
- Date: Thu, 05 Nov 1998 17:52:45 +0100
- In-reply-to: "Sven Wischnowsky"'s message of "Thu, 05 Nov 1998 17:38:01 NFT." <199811051638.RAA03460@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sven Wischnowsky wrote:
> greg@xxxxxxxxxxxxx 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.
*** Src/Zle/iwidgets.list.yank Thu Nov 5 17:23:03 1998
--- Src/Zle/iwidgets.list Thu Nov 5 17:38:23 1998
***************
*** 145,152 ****
"vi-open-line-below", viopenlinebelow, 0
"vi-oper-swap-case", vioperswapcase, 0
"vi-pound-insert", vipoundinsert, 0
! "vi-put-after", viputafter, ZLE_YANK
! "vi-put-before", viputbefore, ZLE_YANK
"vi-quoted-insert", viquotedinsert, ZLE_MENUCMP | ZLE_KEEPSUFFIX
"vi-repeat-change", virepeatchange, 0
"vi-repeat-find", virepeatfind, 0
--- 145,152 ----
"vi-open-line-below", viopenlinebelow, 0
"vi-oper-swap-case", vioperswapcase, 0
"vi-pound-insert", vipoundinsert, 0
! "vi-put-after", viputafter, ZLE_YANK | ZLE_KEEPSUFFIX
! "vi-put-before", viputbefore, ZLE_YANK | ZLE_KEEPSUFFIX
"vi-quoted-insert", viquotedinsert, ZLE_MENUCMP | ZLE_KEEPSUFFIX
"vi-repeat-change", virepeatchange, 0
"vi-repeat-find", virepeatfind, 0
***************
*** 168,172 ****
"what-cursor-position", whatcursorposition, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL
"where-is", whereis, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL
"which-command", processcmd, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL
! "yank", yank, ZLE_YANK
! "yank-pop", yankpop, ZLE_YANK
--- 168,172 ----
"what-cursor-position", whatcursorposition, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL
"where-is", whereis, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL
"which-command", processcmd, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL
! "yank", yank, ZLE_YANK | ZLE_KEEPSUFFIX
! "yank-pop", yankpop, ZLE_YANK | ZLE_KEEPSUFFIX
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarotti 2, 56100 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author