Ticket #4655: term-more-scroll-fixes.patch

File term-more-scroll-fixes.patch, 1.1 KB (added by joshe, 15 years ago)

More scroll region fixes

  • src/apps/terminal/BasicTerminalBuffer.cpp

    commit 9f2fc0c03e1b1ce922d1f200221c0b6ca05b7773
    Author: Joshua R. Elsasser <joshua@elsasser.org>
    Date:   Sun Sep 27 11:25:51 2009 +0000
    
        Fix another pair of Terminal scrolling bugs.
    
    diff --git src/apps/terminal/BasicTerminalBuffer.cpp src/apps/terminal/BasicTerminalBuffer.cpp
    index 74e412e..219afcd 100644
    BasicTerminalBuffer::_Scroll(int32 top, int32 bottom, int32 numLines)  
    13171317                fScreen[lineToDrop]->Clear();
    13181318                std::swap(fScreen[lineToDrop], fScreen[lineToKeep]);
    13191319            }
     1320            // clear any lines between the two swapped ranges above
     1321            for (int32 i = bottom - numLines + 1; i < top + numLines; i++)
     1322                _LineAt(i)->Clear();
    13201323
    13211324            _Invalidate(top, bottom);
    13221325        }
    BasicTerminalBuffer::_Scroll(int32 top, int32 bottom, int32 numLines)  
    13391342                fScreen[lineToDrop]->Clear();
    13401343                std::swap(fScreen[lineToDrop], fScreen[lineToKeep]);
    13411344            }
     1345            // clear any lines between the two swapped ranges above
     1346            for (int32 i = bottom - numLines + 1; i < top + numLines; i++)
     1347                _LineAt(i)->Clear();
    13421348
    13431349            _Invalidate(top, bottom);
    13441350        }