aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2018-08-16 09:15:20 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2018-08-16 09:15:20 +1000
commitdf064f0417852ef3432dd46c873b0b6d4e9cfc1c (patch)
tree4416324e5329993bd303a55e8e9873eb6bd92fd9 /src
parente32711dead461c0c612802a1d8b6dd02eb668e3c (diff)
downloadscintilla-mirror-df064f0417852ef3432dd46c873b0b6d4e9cfc1c.tar.gz
On Cocoa, clicks in the blank text margin now put the caret at the start of text
instead of performing a margin click action. This matches the I-beam cursor appearance.
Diffstat (limited to 'src')
-rw-r--r--src/ViewStyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 2700fb016..3e5504e74 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -430,7 +430,7 @@ int ViewStyle::ExternalMarginWidth() const {
int ViewStyle::MarginFromLocation(Point pt) const {
int margin = -1;
- int x = textStart - fixedColumnWidth;
+ int x = marginInside ? 0 : -fixedColumnWidth;
for (size_t i = 0; i < ms.size(); i++) {
if ((pt.x >= x) && (pt.x < x + ms[i].width))
margin = static_cast<int>(i);