Skip to content

Commit 76b9df2

Browse files
authored
Merge pull request #1361 from ychin/fix-tab-remaining-tracking-tag-crash
Fix remaining tab crash from not clearing tracking tags correctly
2 parents b2dacc5 + 3906462 commit 76b9df2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MacVim/PSMTabBarControl/source/PSMTabBarControl.m

+4
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,11 @@ - (void)removeTabForCell:(PSMTabBarCell *)cell
476476
[[NSNotificationCenter defaultCenter] removeObserver:cell];
477477
if([cell closeButtonTrackingTag] != 0){
478478
[self removeTrackingRect:[cell closeButtonTrackingTag]];
479+
[cell setCloseButtonTrackingTag:0];
479480
}
480481
if([cell cellTrackingTag] != 0){
481482
[self removeTrackingRect:[cell cellTrackingTag]];
483+
[cell setCellTrackingTag:0];
482484
}
483485

484486
// pull from collection
@@ -665,9 +667,11 @@ - (void)update
665667
[[NSNotificationCenter defaultCenter] removeObserver:cell];
666668
if([cell closeButtonTrackingTag] != 0){
667669
[self removeTrackingRect:[cell closeButtonTrackingTag]];
670+
[cell setCloseButtonTrackingTag:0];
668671
}
669672
if([cell cellTrackingTag] != 0){
670673
[self removeTrackingRect:[cell cellTrackingTag]];
674+
[cell setCellTrackingTag:0];
671675
}
672676
}
673677

0 commit comments

Comments
 (0)