diff --git a/src/MacVim/MMTabline/MMTabline.m b/src/MacVim/MMTabline/MMTabline.m index edaf674ba0..38e342e890 100644 --- a/src/MacVim/MMTabline/MMTabline.m +++ b/src/MacVim/MMTabline/MMTabline.m @@ -530,7 +530,7 @@ - (void)scrollTabToVisibleAtIndex:(NSUInteger)index - (void)scrollLeftOneTab { NSRect clipBounds = _scrollView.contentView.bounds; - for (NSUInteger i = _tabs.count - 1; i >= 0; i--) { + for (NSInteger i = _tabs.count - 1; i >= 0; i--) { NSRect tabFrame = _tabs[i].frame; if (!NSContainsRect(clipBounds, tabFrame)) { if (NSMinX(tabFrame) < NSMinX(clipBounds)) {