On Wednesday, 25 June 2014 18:40:45 UTC+1, Christian Brabandt  wrote:
> On Do, 19 Jun 2014, Praful wrote:
> 
> 
> 
> > On Wednesday, 18 June 2014 22:37:47 UTC+1, Christian Brabandt  wrote:
> 
> > > On Mi, 18 Jun 2014, Christian Brabandt wrote:
> 
> > > 
> 
> > > 
> 
> > > Perhaps, it's clip_gen_set_selection() that is slow?
> 
> > > 
> 
> > 
> 
> > Sorry, still slow! Is there any debugging information I can provide to help 
> > you diagnose what's going on?
> 
> > 
> 
> > In case you've forgotten, your original solution did work even though it 
> > wasn't as generic as Bram wanted. It could be there is no generic solution 
> > and you have to settle for a specific solution.
> 
> 
> 
> Please try the attached patch. It was indeed clip_gen_set_selection() 
> 
> that was slow, but the previous patch was still a little bit wrong. 
> 
> 
> 
> Please also make sure, the clipboard still works. I have tested it 
> 
> locally and instead of 15 seconds for a :g/^/y command it took 2.5 
> 
> seconds (as much as with :set clipboard=), while still copying the last 
> 
> yank into the clipboard.
> 
> 
> 
> For the records, I did profiling using ltprof. This worked quite well.
> 
> 
> 
> Best,
> 
> Christian
> 
> -- 
> 
> Computer können Dinge tun, die wir nur tun können, indem wir darüber
> 
> nachdenken.

Hi Christian

Excellent news: it is now working! I can confirm that the item that remains on 
the clipboard after issuing g/<pattern/d is the last row that was deleted.

Thank you for persevering with this issue!

Praful

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui