aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-04-07 00:25:33 +0000
committernyamatongwe <unknown>2010-04-07 00:25:33 +0000
commit414007ac1c0a3a05c80e6a03783ddb18be8ddbf6 (patch)
treebd6974d99bfdb234113b9a9979489488b7958e69 /src
parent2456abcbed9886aeefdae0c8f93fc638deeb7935 (diff)
downloadscintilla-mirror-414007ac1c0a3a05c80e6a03783ddb18be8ddbf6.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
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;