aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-22 00:26:41 +0000
committernyamatongwe <devnull@localhost>2009-07-22 00:26:41 +0000
commitdb0003c1cf228821a883da344f5c7be69e8198b9 (patch)
treed1c0fa0ce876361354f60d1fbfdc059a64e88915 /src/Editor.cxx
parentd82770a5659e19e6d74911d2897e2f9ea2d6e49e (diff)
downloadscintilla-mirror-db0003c1cf228821a883da344f5c7be69e8198b9.tar.gz
When setting the rectangular selection range, remember to calaculate the
new selections.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 317b3f4a6..2527fdb49 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -8217,6 +8217,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
sel.Clear();
sel.selType = Selection::selRectangle;
sel.Rectangular().caret.SetPosition(wParam);
+ SetRectangularRange();
Redraw();
break;
@@ -8228,6 +8229,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
sel.Clear();
sel.selType = Selection::selRectangle;
sel.Rectangular().anchor.SetPosition(wParam);
+ SetRectangularRange();
Redraw();
break;