From df064f0417852ef3432dd46c873b0b6d4e9cfc1c Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 16 Aug 2018 09:15:20 +1000 Subject: 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. --- src/ViewStyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(i); -- cgit v1.2.3