Skip to content

Commit 86347d1

Browse files
committed
Merge pull request #131 from macvim-dev/fix/macligatures_option_redraw
Add P_RCLR flag to macligatures for proper redrawing
2 parents 9d566fc + 6183831 commit 86347d1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/MacVim/MMVimController.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,10 +803,8 @@ - (void)handleMessage:(int)msgid data:(NSData *)data
803803
[[[windowController vimView] textView] setAntialias:NO];
804804
} else if (EnableLigaturesMsgID == msgid) {
805805
[[[windowController vimView] textView] setLigatures:YES];
806-
[self sendMessage:BackingPropertiesChangedMsgID data:nil];
807806
} else if (DisableLigaturesMsgID == msgid) {
808807
[[[windowController vimView] textView] setLigatures:NO];
809-
[self sendMessage:BackingPropertiesChangedMsgID data:nil];
810808
} else if (SetVimStateMsgID == msgid) {
811809
NSDictionary *dict = [NSDictionary dictionaryWithData:data];
812810
if (dict) {

src/option.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ static struct vimoption
18311831
{(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT},
18321832
#endif
18331833
#ifdef FEAT_GUI_MACVIM
1834-
{"macligatures", NULL, P_BOOL|P_VI_DEF,
1834+
{"macligatures", NULL, P_BOOL|P_VI_DEF|P_RCLR,
18351835
(char_u *)&p_macligatures, PV_NONE,
18361836
{(char_u *)FALSE, (char_u *)0L}},
18371837
#endif

0 commit comments

Comments
 (0)