diff options
| author | Neil <nyamatongwe@gmail.com> | 2016-10-19 12:27:52 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2016-10-19 12:27:52 +1100 |
| commit | 3468e74bd70723987dc83ec3623b6839be3a1557 (patch) | |
| tree | dc4908c931194e930c8cda470a39a7fa2e7beef6 | |
| parent | 9185c9e8e3102c58526b4c2e573b4bb45ef99a95 (diff) | |
| download | scintilla-mirror-3468e74bd70723987dc83ec3623b6839be3a1557.tar.gz | |
Margin click to select line now clears rectangular and additional selections.
| -rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
| -rw-r--r-- | src/Editor.cxx | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 982d7ca1c..ea02b5a4b 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -523,6 +523,9 @@ Released 16 October 2016. </li> <li> + Margin click to select line now clears rectangular and additional selections. + </li> + <li> A potential bug on GTK+ fixed where asynchronous clipboard could be delivered after its target Scintilla instance was destroyed. </li> diff --git a/src/Editor.cxx b/src/Editor.cxx index 9fcd01fbb..4733ae296 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4498,6 +4498,9 @@ void Editor::ButtonDownWithModifiers(Point pt, unsigned int curTime, int modifie } } else { // Single click if (inSelMargin) { + if (sel.IsRectangular() || (sel.Count() > 1)) { + sel.Clear(); + } sel.selType = Selection::selStream; if (!shift) { // Single click in margin: select whole line or only subline if word wrap is enabled |
