aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-12-31 10:49:58 +1100
committernyamatongwe <unknown>2010-12-31 10:49:58 +1100
commitd02d58bee77d11650c5166e4d01172e0d2c0a130 (patch)
treeb3911511262cdd60c85ec02bb44e58885bc11a6a
parent52f41a94d5c9556ea2cc84a42ad74c6f89888374 (diff)
downloadscintilla-mirror-d02d58bee77d11650c5166e4d01172e0d2c0a130.tar.gz
Minimize redraw when clicking mouse to make new empty selection.
-rw-r--r--src/Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 312c39b37..e9a30ee72 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5972,7 +5972,8 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b
InvalidateSelection(SelectionRange(newPos), true);
if (sel.Count() > 1)
Redraw();
- sel.Clear();
+ if ((sel.Count() > 1) || (sel.selType != Selection::selStream))
+ sel.Clear();
sel.selType = alt ? Selection::selRectangle : Selection::selStream;
SetSelection(newPos, newPos);
}