aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-02-06 09:44:45 +0000
committernyamatongwe <devnull@localhost>2004-02-06 09:44:45 +0000
commited53c96c3ccf3908a4dcf391ddae377530cfa657 (patch)
tree34f5dc3e8c590e88122b2c6fca378bde24568a5b /src
parent084938ca2ee06134c5aef8b7930daa7454a39f43 (diff)
downloadscintilla-mirror-ed53c96c3ccf3908a4dcf391ddae377530cfa657.tar.gz
Changed rectangular selection to use same technique to calculate
selected characters when dragging as when copying to clipboard as otherwise the characters copied could sometimes differ from those apparently selected. This change impacts seelcting beyond the end of the final line.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a11f99688..a07d0bee7 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4930,7 +4930,8 @@ void Editor::ButtonMove(Point pt) {
}
// While dragging to make rectangular selection, we don't want the current
// position to jump to the end of smaller or empty lines.
- xEndSelect = pt.x - vs.fixedColumnWidth + xOffset;
+ //xEndSelect = pt.x - vs.fixedColumnWidth + xOffset;
+ xEndSelect = XFromPosition(movePos);
// Autoscroll
PRectangle rcClient = GetClientRectangle();