Fix for clip_copy_selection() being made static

This commit is contained in:
Bjorn Winckler
2012-07-17 22:47:48 +02:00
parent 35a06550f8
commit 98c2fea06d
+6 -1
View File
@@ -1330,7 +1330,12 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
if (!pboard)
return YES;
clip_copy_selection();
// The code below used to be clip_copy_selection() but it is now
// static, so do it manually.
clip_update_selection(&clip_star);
clip_free_selection(&clip_star);
clip_get_selection(&clip_star);
clip_gen_set_selection(&clip_star);
// Get the text to put on the pasteboard.
long_u llen = 0; char_u *str = 0;