On 14 July 2010 14:52, Bram Moolenaar wrote:
>
> I wrote:
>
>> Björn Winckler wrote:
>>
>> > On 12 July 2010 21:04, björn wrote:
>> > >
>> > > I looked into this issue carefully now and decided it is best to
>> > > convert os_macosx.c to Obj-C and have attached an updated patch which
>> > > includes block-wise copy/paste (the old patch had issues with linking
>> > > as well).
>> > >
>> >
>> > I accidentally included auto/config.mk in the patch...attaching a new
>> > one.  Sorry about that.
>>
>> I included this, and generated the configure script.
>>
>> Looking at os_macosx.m, it appears these functions are not used:
>>       mch_gettext()
>>       mch_bindtextdomain()
>>       mch_textdomain()
>>
>> The whole section with #ifdef USE_MCH_GETTEXT  appears to be unused.
>
> The clipboard does not appear to work.  Looks like a call to clip_init()
> is missing.  Was the patch incomplete?

You are right about the missing call to clip_init().  The patch below
is the missing hunk from main.c.  Sorry about that.

Thanks for including this patch.

Björn


diff --git a/src/main.c b/src/main.c
index 964bdd5..e19084e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -711,6 +711,10 @@ main
     qnx_clip_init();
 #endif

+#if defined(MACOS_X) && defined(FEAT_CLIPBOARD)
+    clip_init(TRUE);
+#endif
+
 #ifdef FEAT_XCLIPBOARD
     /* Start using the X clipboard, unless the GUI was started. */
 # ifdef FEAT_GUI

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

Raspunde prin e-mail lui