summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2012-01-28 16:26:57 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2012-01-28 16:26:57 (GMT)
commit6d9d49aafb358293326f4edca393c7f2dfc9602a (patch)
treee107abc9e201cafe0920867341811926894964f0
parent19d7990b12f17905e1b791f3ca99a0fdeb49de95 (diff)
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
-rw-r--r--src/ScreenWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScreenWindow.cpp b/src/ScreenWindow.cpp
index 5249993..e9fa8a0 100644
--- a/src/ScreenWindow.cpp
+++ b/src/ScreenWindow.cpp
@@ -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();