From c79314c9bd8efc6e521664bf4de182370c436c09 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 17 Jun 2017 18:09:23 -0400 Subject: Effectively updated to Scintilla 3.7.5 with select backports to 3.7.3. --- src/scintilla_backports/6231_61adfbe4fa64.patch | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/scintilla_backports/6231_61adfbe4fa64.patch (limited to 'src/scintilla_backports/6231_61adfbe4fa64.patch') diff --git a/src/scintilla_backports/6231_61adfbe4fa64.patch b/src/scintilla_backports/6231_61adfbe4fa64.patch new file mode 100644 index 00000000..6945055a --- /dev/null +++ b/src/scintilla_backports/6231_61adfbe4fa64.patch @@ -0,0 +1,44 @@ +# HG changeset patch +# User Neil +# Date 1494389973 -36000 +# Node ID 61adfbe4fa64ed5ad99e36dc7220cd3c6f9b7659 +# Parent 6c164ebad8b9b40d9e757d49f37a4354f3c7fc03 +Feature [feature-requests:#1187]. Update scroll bar when annotations added, +removed, or visibility changed. + +diff -r 6c164ebad8b9 -r 61adfbe4fa64 doc/ScintillaHistory.html +--- a/doc/ScintillaHistory.html Wed May 10 14:15:16 2017 +1000 ++++ b/doc/ScintillaHistory.html Wed May 10 14:19:33 2017 +1000 +@@ -571,6 +571,10 @@ + Bug #1931. + +
  • ++ Update scroll bar when annotations added, removed, or visibility changed. ++ Feature #1187. ++
  • ++
  • + Canceling modes with the Esc key preserves a rectangular selection. + Bug #1940. +
  • +diff -r 6c164ebad8b9 -r 61adfbe4fa64 src/Editor.cxx +--- a/src/Editor.cxx Wed May 10 14:15:16 2017 +1000 ++++ b/src/Editor.cxx Wed May 10 14:19:33 2017 +1000 +@@ -2629,7 +2629,9 @@ + if (mh.modificationType & SC_MOD_CHANGEANNOTATION) { + Sci::Line lineDoc = pdoc->LineFromPosition(mh.position); + if (vs.annotationVisible) { +- cs.SetHeight(lineDoc, cs.GetHeight(lineDoc) + mh.annotationLinesAdded); ++ if (cs.SetHeight(lineDoc, cs.GetHeight(lineDoc) + mh.annotationLinesAdded)) { ++ SetScrollBars(); ++ } + Redraw(); + } + } +@@ -5276,6 +5278,7 @@ + cs.SetHeight(line, cs.GetHeight(line) + annotationLines * dir); + } + } ++ SetScrollBars(); + } + Redraw(); + } -- cgit v1.2.3