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
commitd4c70817e36bb2fbe389ba580e1bbffdf038af5f (patch)
tree6bef662018242a3cbfd288c90d2ff1f2299e4572 /src
parent8c93fbff2d065993e14ddb250026063456c53883 (diff)
downloadscintilla-mirror-d4c70817e36bb2fbe389ba580e1bbffdf038af5f.tar.gz
Backport: 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. Backport of changeset 7076:da262571a2a2.
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 2b87c8a51..387070ae9 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -429,7 +429,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);