Commit 95fc42bf authored by Kurt Hindenburg's avatar Kurt Hindenburg

add FIXME about Q_ASSERT being triggered

parent accf0761
......@@ -1236,6 +1236,8 @@ int Screen::copyLineToStream(int line ,
int screenLine = line - _history->getLines();
// FIXME: This can be triggered when clearing history
// while having the searchbar open and selecting next/prev
Q_ASSERT(screenLine <= _screenLinesSize);
screenLine = qMin(screenLine, _screenLinesSize);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment