From 6c2971aec384b75a0d369c8865b77c353e5b3a66 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 7 Apr 2010 00:25:33 +0000 Subject: With a rectangular selection, SCI_GETSELECTIONSTART and SCI_GETSELECTIONEND return the start and end of the rectangular selection rather than for the main selection. This makes the behaviour similar to versions before 2.0. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index c313e3928..61a349f04 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7037,14 +7037,14 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { break; case SCI_GETSELECTIONSTART: - return Platform::Minimum(sel.MainAnchor(), sel.MainCaret()); + return sel.LimitsForRectangularElseMain().start.Position(); case SCI_SETSELECTIONEND: SetSelection(wParam, Platform::Minimum(sel.MainAnchor(), wParam)); break; case SCI_GETSELECTIONEND: - return Platform::Maximum(sel.MainAnchor(), sel.MainCaret()); + return sel.LimitsForRectangularElseMain().end.Position(); case SCI_SETPRINTMAGNIFICATION: printMagnification = wParam; -- cgit v1.2.3