aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-12-31 10:49:58 +1100
committernyamatongwe <devnull@localhost>2010-12-31 10:49:58 +1100
commit45a9984b8ed3d8055690472dfe9e8b0e90fe73fc (patch)
treee570342518fc7374f5db321df9ebd481fbf27129 /src
parenta3acf5d5f220b7ff2c3a9260b44da1bec97f9c59 (diff)
downloadscintilla-mirror-45a9984b8ed3d8055690472dfe9e8b0e90fe73fc.tar.gz
Minimize redraw when clicking mouse to make new empty selection.
Diffstat (limited to 'src')
-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);
}