Commit 1d5e8683 authored by Committed by Tomaz CanabravaBrowse files
[CompactHistory] store biased starts of lines
Using line lengths, moving up in scroll history would require traversing line lengths adding them until getting the start of the required line. Using line starts, removing lines as they scroll past history would require traversing the whole vector and updating the line starts. A better option is storing biased line starts, which doesn't require any traversing of the vector for common operations (hopefully reflowing is not a common operation).