From 3ba9f505933cc9fb7e8ccf6e0cf04740235c2816 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 6 Nov 2017 18:03:57 -0500 Subject: Backported bugfixes and changes from Scintilla 4.0.0 to 4.0.2. --- src/scintilla_backports/6388_96506cab38bd.patch | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/scintilla_backports/6388_96506cab38bd.patch (limited to 'src/scintilla_backports/6388_96506cab38bd.patch') diff --git a/src/scintilla_backports/6388_96506cab38bd.patch b/src/scintilla_backports/6388_96506cab38bd.patch new file mode 100644 index 00000000..5ff68a60 --- /dev/null +++ b/src/scintilla_backports/6388_96506cab38bd.patch @@ -0,0 +1,33 @@ +# HG changeset patch +# User Neil Hodgson +# Date 1505266064 -36000 +# Node ID 96506cab38bdbd86feac8a0aa671854091b7610b +# Parent d62863ae40a38b08b7b1e3bc13a874b9e8f1c6d2 +Bug [#1971]. Fix line selection by clicking in the margin when scrolled. + +diff -r d62863ae40a3 -r 96506cab38bd doc/ScintillaHistory.html +--- a/doc/ScintillaHistory.html Mon Sep 11 09:05:35 2017 +1000 ++++ b/doc/ScintillaHistory.html Wed Sep 13 11:27:44 2017 +1000 +@@ -554,6 +554,10 @@ + The SQL lexer uses sql.backslash.escapes for double quoted strings. + Bug #1968. + ++
  • ++ On Cocoa, fix line selection by clicking in the margin when scrolled. ++ Bug #1971. ++
  • + +

    + Release 4.0.0 +diff -r d62863ae40a3 -r 96506cab38bd src/Editor.cxx +--- a/src/Editor.cxx Mon Sep 11 09:05:35 2017 +1000 ++++ b/src/Editor.cxx Wed Sep 13 11:27:44 2017 +1000 +@@ -4320,6 +4320,8 @@ + PRectangle rcSelMargin = GetClientRectangle(); + rcSelMargin.right = static_cast(vs.textStart - vs.leftMarginWidth); + rcSelMargin.left = static_cast(vs.textStart - vs.fixedColumnWidth); ++ const Point ptOrigin = GetVisibleOriginInMain(); ++ rcSelMargin.Move(0, -ptOrigin.y); + return rcSelMargin.ContainsWholePixel(pt); + } else { + return false; -- cgit v1.2.3