On 15/03/19 05:37, Bram Moolenaar wrote:
> Andre Sihera wrote:
>
>> I'm using a fairly old version of ViM (7.3) on Ubuntu so I wondered if
>> this problem
>> isalready known about and maybe fixed in a newer version.
>>
>> The problem is that the clipboard contents appear to be getting
>> corrupted during a
>> cut/paste using the '*' register.
>>
>> Way to reproduce:
>>
>> 1) Open two terminal windows (or two tabs in a single terminal). I can
>> reproduce
>>      with both gnome terminal and mate terminal.
>>
>> 2) run VIM in both with no file in either window.
>>
>> 3) Go to one terminal ("terminal #1") and enter the following text from
>> line one:
>>
>> This is a test
>> This is another test
>> This is yet another test
>> This is a fourth test
>>
>> 5) Go to the other terminal ("terminal #2") and enter this text from
>> line one:
>>
>> This is a new test
>> This is a newer test
>>
>> 6) In terminal #1, go to line two, SHIFT+V, select the two middle lines,
>> then "*y
>>      toyankto the clipboard. The lines yanked will be:
>>
>> This is another test
>> This is yet another test
>>
>> 7) In terminal #1, :q! to exit ViM.
>>
>> 8) Go to terminal #2 position on line two ("This is a newer test") then "*p
>> The text does not paste from line three onwards, it gets merged into
>> line two:
>>
>> This is a new test
>> TThis is another test
>> This is yet another test
>> his is a newer test
>>
>>
>> If terminal #1 is left open during the operation it works as expected.
>> If anyone
>> can confirm this I'd be grateful.
> This is normal.  So long as Vim is running it can support requests for
> the current selection, which it owns.  Vim then adds info about the kind
> of selection (linewise, blockwise).  When Vim exits the selection is
> moved to the clipboard.  There it is not possible to add info about the
> kind of selection, thus it is always characterwise.
>
Understood.

Thanks for explaining.

Andre.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui