diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-12 16:22:21 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-12 16:22:21 +1000 |
commit | 10246ea550d3d9f09f4e2f590e14baf4bccef9db (patch) | |
tree | f7b8966451e28a2cf9f1d49a5d01bb37daa22a8b /src | |
parent | 3c501094b808f3712be1abefc72e83287477c925 (diff) | |
download | scintilla-mirror-10246ea550d3d9f09f4e2f590e14baf4bccef9db.tar.gz |
Feature: [feature-requests:#1007]. Fix bugs with redrawing selection.
From Neomi.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 7c1d91c28..45a88711f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -980,6 +980,7 @@ int Editor::MovePositionTo(SelectionPosition newPos, Selection::selTypes selt, b } if (!sel.IsRectangular() && (selt == Selection::selRectangle)) { // Switching to rectangular + InvalidateSelection(sel.RangeMain(), false); SelectionRange rangeMain = sel.RangeMain(); sel.Clear(); sel.Rectangular() = rangeMain; @@ -6532,6 +6533,7 @@ void Editor::ButtonMove(Point pt) { sel.Rectangular() = SelectionRange(movePos, sel.Rectangular().anchor); SetSelection(movePos, sel.RangeMain().anchor); } else if (sel.Count() > 1) { + InvalidateSelection(sel.RangeMain(), false); SelectionRange range(movePos, sel.RangeMain().anchor); sel.TentativeSelection(range); InvalidateSelection(range, true); |