Dont add one extra line when creating CompactHistoryScroll
Fixes HistoryTest::testHistoryTypeChange. We were subtracting -1 for no reason. This lead to adding one extra line to the history. The previous implementation would immediately remove the top line but the new one waits till we have 5 extra lines. Hence, the test broke.
Please register or sign in to comment