From 61838317637e778082a8ef234c449779ad8bbd6a Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Fri, 13 Nov 2015 21:31:12 -0800 Subject: [PATCH] Add P_RCLR flag to macligatures for proper redrawing --- src/MacVim/MMVimController.m | 2 -- src/option.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/MacVim/MMVimController.m b/src/MacVim/MMVimController.m index 1ea5fd48a9..088fdaa6d6 100644 --- a/src/MacVim/MMVimController.m +++ b/src/MacVim/MMVimController.m @@ -803,10 +803,8 @@ static BOOL isUnsafeMessage(int msgid); [[[windowController vimView] textView] setAntialias:NO]; } else if (EnableLigaturesMsgID == msgid) { [[[windowController vimView] textView] setLigatures:YES]; - [self sendMessage:BackingPropertiesChangedMsgID data:nil]; } else if (DisableLigaturesMsgID == msgid) { [[[windowController vimView] textView] setLigatures:NO]; - [self sendMessage:BackingPropertiesChangedMsgID data:nil]; } else if (SetVimStateMsgID == msgid) { NSDictionary *dict = [NSDictionary dictionaryWithData:data]; if (dict) { diff --git a/src/option.c b/src/option.c index 969852fdbb..4143bb2020 100644 --- a/src/option.c +++ b/src/option.c @@ -1831,7 +1831,7 @@ static struct vimoption {(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT}, #endif #ifdef FEAT_GUI_MACVIM - {"macligatures", NULL, P_BOOL|P_VI_DEF, + {"macligatures", NULL, P_BOOL|P_VI_DEF|P_RCLR, (char_u *)&p_macligatures, PV_NONE, {(char_u *)FALSE, (char_u *)0L}}, #endif