From 345ed7ab0181ae7befc1a60b2fee19419a0987d9 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Thu, 3 Dec 2009 18:07:10 +0100 Subject: [PATCH] Support the "a" flag in 'guioptions' --- src/MacVim/gui_macvim.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/MacVim/gui_macvim.m b/src/MacVim/gui_macvim.m index edf03e48a0..71748ce7c0 100644 --- a/src/MacVim/gui_macvim.m +++ b/src/MacVim/gui_macvim.m @@ -603,7 +603,11 @@ clip_mch_lose_selection(VimClipboard *cbd) int clip_mch_own_selection(VimClipboard *cbd) { - return 0; + // This is called whenever there is a new selection and 'guioptions' + // contains the "a" flag (automatically copy selection). Return TRUE, else + // the "a" flag does nothing. Note that there is no concept of "ownership" + // of the clipboard in Mac OS X. + return TRUE; }