aboutsummaryrefslogtreecommitdiff
path: root/src/scintilla_backports/6388_96506cab38bd.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2017-11-06 18:03:57 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2017-11-06 18:03:57 -0500
commit3ba9f505933cc9fb7e8ccf6e0cf04740235c2816 (patch)
tree57bed97a3d72a080cd3d643d493345cf11694359 /src/scintilla_backports/6388_96506cab38bd.patch
parent5023b6e422f1a8d71c93c076d3d58cb48693def7 (diff)
downloadtextadept-3ba9f505933cc9fb7e8ccf6e0cf04740235c2816.tar.gz
textadept-3ba9f505933cc9fb7e8ccf6e0cf04740235c2816.zip
Backported bugfixes and changes from Scintilla 4.0.0 to 4.0.2.
Diffstat (limited to 'src/scintilla_backports/6388_96506cab38bd.patch')
-rw-r--r--src/scintilla_backports/6388_96506cab38bd.patch33
1 files changed, 33 insertions, 0 deletions
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 <nyamatongwe@gmail.com>
+# 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.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1968/">Bug #1968</a>.
+ </li>
++ <li>
++ On Cocoa, fix line selection by clicking in the margin when scrolled.
++ <a href="http://sourceforge.net/p/scintilla/bugs/1971">Bug #1971</a>.
++ </li>
+ </ul>
+ <h3>
+ <a href="http://www.scintilla.org/scite400.zip">Release 4.0.0</a>
+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<XYPOSITION>(vs.textStart - vs.leftMarginWidth);
+ rcSelMargin.left = static_cast<XYPOSITION>(vs.textStart - vs.fixedColumnWidth);
++ const Point ptOrigin = GetVisibleOriginInMain();
++ rcSelMargin.Move(0, -ptOrigin.y);
+ return rcSelMargin.ContainsWholePixel(pt);
+ } else {
+ return false;