From 8d5d60f5f623965ce2009e291b5692306557b82e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 6 Feb 2004 09:44:45 +0000 Subject: 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. --- src/Editor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3