aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-04-07 00:25:33 +0000
committernyamatongwe <devnull@localhost>2010-04-07 00:25:33 +0000
commit6c2971aec384b75a0d369c8865b77c353e5b3a66 (patch)
treebd6974d99bfdb234113b9a9979489488b7958e69 /src
parentc445609771ccabeb04327cd28d2969bdaf6d0a60 (diff)
downloadscintilla-mirror-6c2971aec384b75a0d369c8865b77c353e5b3a66.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;