Skip to content
  • Luis Javier Merino's avatar
    Fix crash/warn on history reflow · 2a78bb6e
    Luis Javier Merino authored and Tomaz  Canabrava's avatar Tomaz Canabrava committed
    When the last line in history was marked as wrapped, the history reflow
    algorithm could try to make an out-of-bound access.
    
    These were found via repeteadly zooming-in and out in the amp.rs editor
    (available through Rust's cargo tool).  amp.rs writes in the normal
    buffer (not in the alternate buffer).
    
    While at it, add a Q_ASSERT in HistoryScrollFile::startOfLine() to
    ensure parameters are in range.  Note that after an addCells()/addLine()
    pair, HistoryScrollFile::startOfLine(getLines) always has the same value
    as _cells.len().
    
    BUG: 436916
    2a78bb6e
To find the state of this project's repository at the time of any of these versions, check out the tags.