Skip to content

Commit 383be18

Browse files
committed
Merge pull request #103 from macvim-dev/fix/el-capitan-split-view-resize
Fix resizing issue in Split View on El Capitan
2 parents 406259c + 0cdf775 commit 383be18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/MacVim/MMWindowController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,12 @@ - (void)updateToolbar
15671567

15681568
- (BOOL)maximizeWindow:(int)options
15691569
{
1570+
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_10_Max) {
1571+
// NOTE: Prevent to resize the window in Split View on El Capitan or
1572+
// later.
1573+
return NO;
1574+
}
1575+
15701576
int currRows, currColumns;
15711577
[[vimView textView] getMaxRows:&currRows columns:&currColumns];
15721578

0 commit comments

Comments
 (0)