[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-ed] Cut buffer does not persist between files
From: |
Brian Zwahr |
Subject: |
Re: [bug-ed] Cut buffer does not persist between files |
Date: |
Thu, 05 Dec 2019 08:27:59 -0600 |
User-agent: |
Cyrus-JMAP/3.1.7-612-g13027cc-fmstable-20191203v1 |
On Wed, Dec 4, 2019, at 11:11 AM, Antonio Diaz Diaz wrote:
> Brian Zwahr wrote:
> > I'm running into an issue that I'm not sure if it's a feature, a bug, or
> > just an oversight. If I open a file in ed, yank some text with `y`, then
> > open a new file for editing using `e`, I can't paste the yanked text with
> > `x`.
>
> This has been GNU ed's behavior since the yank buffer was introduced in
> version 0.2 (1994). The yank buffer is cleared before closing the old file
> and opening the new.
>
> I agree that it may be useful to keep the yank buffer between files, but it
> would be a major change because the yank buffer is implemented as a linked
> list of pointers to lines in the file buffer.
>
>
> Best regards,
> Antonio.
>
Thanks for that explanation, Antonio! it's unfortunate, but I better understand
now.