From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@math.gatech.edu, greg@alphatech.com
Subject: Re: another bug in suffix removal 3.1.5
Date: Thu, 05 Nov 1998 17:52:45 +0100 [thread overview]
Message-ID: <9811051652.AA27639@ibmth.df.unipi.it> (raw)
In-Reply-To: "Sven Wischnowsky"'s message of "Thu, 05 Nov 1998 17:38:01 NFT." <199811051638.RAA03460@beta.informatik.hu-berlin.de>
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.
*** 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@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarotti 2, 56100 Pisa, Italy
next prev parent reply other threads:[~1998-11-05 17:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-05 16:38 Sven Wischnowsky
1998-11-05 16:52 ` Peter Stephenson [this message]
-- 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
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=9811051652.AA27639@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=greg@alphatech.com \
--cc=zsh-workers@math.gatech.edu \
/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).