diff options
author | nyamatongwe <unknown> | 2004-02-06 09:44:45 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-02-06 09:44:45 +0000 |
commit | 8d5d60f5f623965ce2009e291b5692306557b82e (patch) | |
tree | 34f5dc3e8c590e88122b2c6fca378bde24568a5b /src | |
parent | 98b2a27ccd8e9ecf70370a8e1b4e8e100bde29ba (diff) | |
download | scintilla-mirror-8d5d60f5f623965ce2009e291b5692306557b82e.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.cxx | 3 |
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(); |