diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 799f46100..869c64e70 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -158,7 +158,7 @@ [fLock lock]; - NSUInteger currentIndex = [fMessages count] > 0 ? ([[[fMessages lastObject] objectForKey: @"Index"] unsignedIntegerValue] + 1) : 0; + static NSUInteger currentIndex = 0; NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller]; const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden]