File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,13 @@ - (id)initWithFrame:(NSRect)frame
137
137
boolForKey: MMBufferedDrawingKey];
138
138
cgBufferDrawNeedsUpdateContext = NO ;
139
139
140
- cgLayerEnabled = [[NSUserDefaults standardUserDefaults ]
141
- boolForKey: MMUseCGLayerAlwaysKey];
140
+ cgLayerEnabled = NO ;
141
+ if (!cgBufferDrawEnabled) {
142
+ // Buffered draw supercedes the CGLayer renderer, which is deprecated
143
+ // and doesn't actually work in 10.14+.
144
+ cgLayerEnabled = [[NSUserDefaults standardUserDefaults ]
145
+ boolForKey: MMUseCGLayerAlwaysKey];
146
+ }
142
147
cgLayerLock = [NSLock new ];
143
148
144
149
// NOTE! It does not matter which font is set here, Vim will set its
@@ -795,7 +800,7 @@ - (void)performBatchDrawWithData:(NSData *)data
795
800
796
801
- (void )setCGLayerEnabled : (BOOL )enabled
797
802
{
798
- if (cgContext)
803
+ if (cgContext || cgBufferDrawEnabled )
799
804
return ;
800
805
801
806
cgLayerEnabled = enabled;
Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ - (BOOL)presentWindow:(id)unused
348
348
// GUIEnter auto command could cause this).
349
349
[fullScreenWindow enterFullScreen ];
350
350
fullScreenEnabled = YES ;
351
+ shouldResizeVimView = YES ;
351
352
} else if (delayEnterFullScreen) {
352
353
// Set alpha to zero so that the decorated window doesn't pop up
353
354
// before we enter full-screen.
You can’t perform that action at this time.
0 commit comments