Hi Tim,

Thank you for reporting this.

Tim Chase wrote:
   '(.,.)y'
   Copies (yanks) the addressed lines to the cut buffer. The cut buffer
   is overwritten by subsequent 'c', 'd', 'j', 's', or 'y' commands. The
   current address is unchanged.

However, none of those commands were issued between the 'y'ank and the
second 'x' command that complains there is "Nothing to put", only the
"E" (same happens if you don't modify file1.txt and use `e file2.txt`; I
just pasted in file1.txt to show that 'x' works as expected there).

The cut/copy/yank buffer was not designed to copy lines between files. The buffer is a linked list of line pointers to lines in the current buffer, and is deallocated when a new file is loaded.

I'll document in the manual that the cut buffer is deleted before a new file is read.

Best regards,
Antonio.

Reply via email to