diff options
author | nyamatongwe <devnull@localhost> | 2012-07-11 09:52:46 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-07-11 09:52:46 +1000 |
commit | c8549d0729da78370615a498bc2dc56aaa0abaac (patch) | |
tree | bbb94ffe246fe3849a4308906271714f6af207cb /src | |
parent | e844abd0e4c7160c45399a8ec2595efb82368eac (diff) | |
download | scintilla-mirror-c8549d0729da78370615a498bc2dc56aaa0abaac.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.cxx | 2 |
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; } |