From 98c2fea06dd8bf4a67d85705ccc32c6fdc26d10d Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 17 Jul 2012 22:47:48 +0200 Subject: [PATCH] Fix for clip_copy_selection() being made static --- src/MacVim/MMBackend.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MacVim/MMBackend.m b/src/MacVim/MMBackend.m index 111d07e64b..d0527f7180 100644 --- a/src/MacVim/MMBackend.m +++ b/src/MacVim/MMBackend.m @@ -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;