Commit 6d9d49aa authored by Kurt Hindenburg's avatar Kurt Hindenburg

Correct issue of triple clicking and scrolling up.

Fixes selecting text by triple click and scrolling up causes only the
visible contents to be selected.

Thanks to Shlomi Fish (shlomif@iglu.org.il) for research and patch.

BUG: 256353
REVIEW: 103724
FIXED-IN: 4.9
parent 19d7990b
......@@ -128,7 +128,7 @@ void ScreenWindow::getSelectionEnd(int& column , int& line)
}
void ScreenWindow::setSelectionStart(int column , int line , bool columnMode)
{
_screen->setSelectionStart(column , qMin(line + currentLine(), endWindowLine()) , columnMode);
_screen->setSelectionStart(column , line + currentLine() , columnMode);
_bufferNeedsUpdate = true;
emit selectionChanged();
......@@ -136,7 +136,7 @@ void ScreenWindow::setSelectionStart(int column , int line , bool columnMode)
void ScreenWindow::setSelectionEnd(int column , int line)
{
_screen->setSelectionEnd(column , qMin(line + currentLine(), endWindowLine()));
_screen->setSelectionEnd(column , line + currentLine());
_bufferNeedsUpdate = true;
emit selectionChanged();
......
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