mirror of
https://github.com/KDE/konsole.git
synced 2026-02-01 02:41:34 -05:00
Temporary fix for crashing during Search when there is a match on top line.
CCBUG: 205495 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017656
This commit is contained in:
@@ -1319,7 +1319,9 @@ void SearchHistoryTask::executeOnScreenWindow( SessionPtr session , ScreenWindow
|
||||
{
|
||||
int pos = -1;
|
||||
const bool forwards = ( _direction == ForwardsSearch );
|
||||
const int startLine = selectionLine + window->currentLine() + ( forwards ? 1 : -1 );
|
||||
int startLine = selectionLine + window->currentLine() + ( forwards ? 1 : -1 );
|
||||
// Temporary fix for #205495
|
||||
if (startLine < 0) startLine = 0;
|
||||
const int lastLine = window->lineCount() - 1;
|
||||
QString string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user