Fix tabs drawing over rest of MacVim in macOS 14 Sonoma

macOS 14 now defaults clipsToBounds to false, which works in most places
in MacVim but seems to cause issues with PSMTabBar which relies on
clipping to work. Since we are replacing it soon, simply set
clipsToBounds to true for the control.

Fix #1439
This commit is contained in:
Yee Cheng Chin
2023-10-11 19:16:00 -07:00
parent 5098093a67
commit 30afcb74cd
@@ -147,6 +147,10 @@
}
[_addTabButton setNeedsDisplay:YES];
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
[self setClipsToBounds:YES];
#endif
}
- (id)initWithFrame:(NSRect)frame