aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-10-11 11:39:09 +0000
committernyamatongwe <devnull@localhost>2009-10-11 11:39:09 +0000
commit937aca29eefac068d9330a9efd95460be9629730 (patch)
tree34d3e494e80cd681b70463905bc22e9b7640aef1 /src
parent0c14ce0c2ed8361433034e19ee03734adb60857e (diff)
downloadscintilla-mirror-937aca29eefac068d9330a9efd95460be9629730.tar.gz
Fixed bug mentioned on mailing list where Shift+Alt+Click no longer selects
a rectangular region.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f4f78de86..0db5789a4 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5678,10 +5678,12 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b
SetSelection(newPos, newPos);
}
}
+ SelectionPosition anchorCurrent = sel.IsRectangular() ?
+ sel.Rectangular().anchor : sel.RangeMain().anchor;
sel.selType = alt ? Selection::selRectangle : Selection::selStream;
selectionType = selChar;
originalAnchorPos = sel.MainCaret();
- sel.Rectangular() = SelectionRange(newPos);
+ sel.Rectangular() = SelectionRange(newPos, anchorCurrent);
SetRectangularRange();
}
}