aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-07-11 09:52:46 +1000
committernyamatongwe <unknown>2012-07-11 09:52:46 +1000
commit7356159f76b9207583e4f9360a35277eaeaa7eb7 (patch)
treea4b1df734c291e93b0c15fa6acd3501683a2c874 /src
parent2c4c6392d5052c77e66ff124d7fde50a1207350a (diff)
downloadscintilla-mirror-7356159f76b9207583e4f9360a35277eaeaa7eb7.tar.gz
Fix margin click so clicking on first pixel of margin causes a notification.
From John Vella.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f7ecd743f..cd72953ae 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4438,7 +4438,7 @@ bool Editor::NotifyMarginClick(Point pt, bool shift, bool ctrl, bool alt) {
int marginClicked = -1;
int x = 0;
for (int margin = 0; margin < ViewStyle::margins; margin++) {
- if ((pt.x > x) && (pt.x < x + vs.ms[margin].width))
+ if ((pt.x >= x) && (pt.x < x + vs.ms[margin].width))
marginClicked = margin;
x += vs.ms[margin].width;
}