aboutsummaryrefslogtreecommitdiff
path: root/src/scintilla_backports/6176_20120f9d1698.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2017-06-17 18:09:23 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2017-06-17 18:09:23 -0400
commitc79314c9bd8efc6e521664bf4de182370c436c09 (patch)
tree9ce81d4de67843af7f293c2dc556e9c6e257bcb9 /src/scintilla_backports/6176_20120f9d1698.patch
parentb82ab307b7ee8bcc547aa076c17355ad7bb7ea24 (diff)
downloadtextadept-c79314c9bd8efc6e521664bf4de182370c436c09.tar.gz
textadept-c79314c9bd8efc6e521664bf4de182370c436c09.zip
Effectively updated to Scintilla 3.7.5 with select backports to 3.7.3.
Diffstat (limited to 'src/scintilla_backports/6176_20120f9d1698.patch')
-rw-r--r--src/scintilla_backports/6176_20120f9d1698.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/scintilla_backports/6176_20120f9d1698.patch b/src/scintilla_backports/6176_20120f9d1698.patch
new file mode 100644
index 00000000..2622c3a0
--- /dev/null
+++ b/src/scintilla_backports/6176_20120f9d1698.patch
@@ -0,0 +1,19 @@
+# HG changeset patch
+# User Neil <nyamatongwe@gmail.com>
+# Date 1491606364 -36000
+# Node ID 20120f9d1698f2a5b36ca9fa2e01ed08fa9776fd
+# Parent d742ec177a7eab50fa56cf453d32ed211f767365
+Use reference for efficiency.
+
+diff -r d742ec177a7e -r 20120f9d1698 src/Editor.cxx
+--- a/src/Editor.cxx Fri Apr 07 19:44:59 2017 +1000
++++ b/src/Editor.cxx Sat Apr 08 09:06:04 2017 +1000
+@@ -4301,7 +4301,7 @@
+ const SelectionPosition pos = SPositionFromLocation(pt, false, true);
+ const Point ptPos = LocationFromPosition(pos);
+ for (size_t r=0; r<sel.Count(); r++) {
+- const SelectionRange range = sel.Range(r);
++ const SelectionRange &range = sel.Range(r);
+ if (range.Contains(pos)) {
+ bool hit = true;
+ if (pos == range.Start()) {