Hi Bram, Kiichi(ichizoku) and All,

2017-7-11(Tue) 4:34:34 UTC+9 ichizok:
> Would you try this patch?
> 
> https://gist.github.com/ichizok/548dda4bd3839a517c5b0a66d4cbf3e5
> 
> Contents:
> 
> to paste correctly,
> 
> treat PropertyNotify event with priority than Selection(Notify|Request)
> 
> 
> to prevent SEGV,
> 
> set notify callback to XtOwnSelection to prevent automatically freeing 
> selection-value by libxt
> and manage memory for selection-value in clip_x11_convert_selection_cb

I confirmed that his patch solved the following problems written in the todo 
list.

    > X11: Putting more than about 262040 characters of text on the clipboard 
and
    > pasting it in another Vim doesn't work.  (Dominique Pelle, 2008 Aug 21-23)
    > clip_x11_request_selection_cb() is called with zero value and length.
    > Also: Get an error message from free() in the process that owns the 
selection.
    > Seems to happen when the selection is requested the second time, but 
before
    > clip_x11_convert_selection_cb() is invoked, thus in X library code.

I think this patch is great👍
--
Best regards,
Hirohito Higashi (h_east)

-- 
-- 
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