Permalink
Browse files

Fix for clip_copy_selection() being made static

  • Loading branch information...
b4winckler committed Jul 17, 2012
1 parent 35a0655 commit 98c2fea06dd8bf4a67d85705ccc32c6fdc26d10d
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/MacVim/MMBackend.m
View
@@ -1330,7 +1330,12 @@ - (BOOL)starRegisterToPasteboard:(byref NSPasteboard *)pboard
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;

0 comments on commit 98c2fea

Please sign in to comment.