From 0cdf7755b5f6ba1c31af0e498b8053ede28a4247 Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Wed, 28 Oct 2015 05:35:52 -0700 Subject: [PATCH] Fix resizing issue in Split View on El Capitan --- src/MacVim/MMWindowController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MacVim/MMWindowController.m b/src/MacVim/MMWindowController.m index 6734f4e079..ad46b95f5b 100644 --- a/src/MacVim/MMWindowController.m +++ b/src/MacVim/MMWindowController.m @@ -1567,6 +1567,12 @@ - (BOOL)maximizeWindow:(int)options { + if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_10_Max) { + // NOTE: Prevent to resize the window in Split View on El Capitan or + // later. + return NO; + } + int currRows, currColumns; [[vimView textView] getMaxRows:&currRows columns:&currColumns];