Skip to content

Commit a3a7a5a

Browse files
authored
Merge pull request macvim-dev#810 from ychin/yosemite-tab-close-button-on-hover
Make pre-Mojave tabs also show the close button on hover over tab
2 parents 67754cb + 8fce373 commit a3a7a5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MacVim/PSMTabBarControl/source/PSMYosemiteTabStyle.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ - (void)drawInteriorWithTabCell:(PSMTabBarCell *)cell inView:(NSView*)controlVie
381381
NSRect closeButtonRect = [cell closeButtonRectForFrame:cellFrame];
382382
NSImage *button = nil;
383383

384+
if ([cell isHighlighted]) button = closeButton;
384385
if ([cell closeButtonOver]) button = closeButtonOver;
385386
if ([cell closeButtonPressed]) button = closeButtonDown;
386387

0 commit comments

Comments
 (0)