Merge pull request #131 from macvim-dev/fix/macligatures_option_redraw

Add P_RCLR flag to macligatures for proper redrawing
This commit is contained in:
Kazuki Sakamoto
2015-11-13 22:13:33 -08:00
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -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) {
+1 -1
View File
@@ -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