From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1569 invoked from network); 5 Nov 1998 17:09:34 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 Nov 1998 17:09:34 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id MAA00868; Thu, 5 Nov 1998 12:08:01 -0500 (EST) Resent-Date: Thu, 5 Nov 1998 12:08:01 -0500 (EST) Message-Id: <9811051652.AA27639@ibmth.df.unipi.it> To: zsh-workers@math.gatech.edu, greg@alphatech.com Subject: Re: another bug in suffix removal 3.1.5 In-Reply-To: "Sven Wischnowsky"'s message of "Thu, 05 Nov 1998 17:38:01 NFT." <199811051638.RAA03460@beta.informatik.hu-berlin.de> Date: Thu, 05 Nov 1998 17:52:45 +0100 From: Peter Stephenson Resent-Message-ID: <"S5FaK.0.SD.njTGs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4564 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sven Wischnowsky wrote: > greg@alphatech.com wrote: > > > OK, I found another one: > > > > % mkdir foo > > % mkdir foo/bar > > % bar # IE, get "bar" in the kill ring > > % ls f > > -> foo/ > > -> 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 Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarotti 2, 56100 Pisa, Italy