Skip to content

Commit 30afcb7

Browse files
committed
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
1 parent 5098093 commit 30afcb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MacVim/PSMTabBarControl/source/PSMTabBarControl.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ - (void)initAddedProperties
147147
}
148148
[_addTabButton setNeedsDisplay:YES];
149149
}
150+
151+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
152+
[self setClipsToBounds:YES];
153+
#endif
150154
}
151155

152156
- (id)initWithFrame:(NSRect)frame

0 commit comments

Comments
 (0)