aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
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