diff options
author | nyamatongwe <devnull@localhost> | 2010-12-31 10:49:58 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-12-31 10:49:58 +1100 |
commit | 45a9984b8ed3d8055690472dfe9e8b0e90fe73fc (patch) | |
tree | e570342518fc7374f5db321df9ebd481fbf27129 /src | |
parent | a3acf5d5f220b7ff2c3a9260b44da1bec97f9c59 (diff) | |
download | scintilla-mirror-45a9984b8ed3d8055690472dfe9e8b0e90fe73fc.tar.gz |
Minimize redraw when clicking mouse to make new empty selection.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 3 |
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); } |