diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2018-08-16 09:15:20 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2018-08-16 09:15:20 +1000 |
commit | d4c70817e36bb2fbe389ba580e1bbffdf038af5f (patch) | |
tree | 6bef662018242a3cbfd288c90d2ff1f2299e4572 /src | |
parent | 8c93fbff2d065993e14ddb250026063456c53883 (diff) | |
download | scintilla-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.cxx | 2 |
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); |