From 3468e74bd70723987dc83ec3623b6839be3a1557 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Oct 2016 12:27:52 +1100 Subject: Margin click to select line now clears rectangular and additional selections. --- src/Editor.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit v1.2.3