Skip to content

Commit aa1cb39

Browse files
committed
Ensure that the tab line is hidden and restored correct when entering and leaving split screen.
1 parent 6a8af04 commit aa1cb39

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/MacVim/MMWindowController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,9 @@ - (void)windowWillEnterFullScreen:(NSNotification *)notification
12071207
// Store window frame and use it when exiting full-screen.
12081208
preFullScreenFrame = [decoratedWindow frame];
12091209

1210+
// The separator should never be visible in fullscreen or split-screen.
1211+
[decoratedWindow hideTablineSeparator:YES];
1212+
12101213
// ASSUMPTION: fullScreenEnabled always reflects the state of Vim's 'fu'.
12111214
if (!fullScreenEnabled) {
12121215
ASLogDebug(@"Full-screen out of sync, tell Vim to set 'fu'");
@@ -1306,6 +1309,8 @@ - (void)windowDidExitFullScreen:(NSNotification *)notification
13061309
// full-screen by moving the window out from Split View.
13071310
[vimController sendMessage:BackingPropertiesChangedMsgID data:nil];
13081311
}
1312+
1313+
[self updateTablineSeparator];
13091314
}
13101315

13111316
- (void)windowDidFailToExitFullScreen:(NSWindow *)window

0 commit comments

Comments
 (0)