From 35fce59f65c02414af6cf0fcdc698c61ae0f8b47 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 18 Feb 2018 10:41:51 -0500 Subject: Backported bugfixes and changes from Scintilla 4.0.2 to 4.0.3. --- src/scintilla_backports/6449_1280ef150bbb.patch | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/scintilla_backports/6449_1280ef150bbb.patch (limited to 'src/scintilla_backports/6449_1280ef150bbb.patch') diff --git a/src/scintilla_backports/6449_1280ef150bbb.patch b/src/scintilla_backports/6449_1280ef150bbb.patch new file mode 100644 index 00000000..0a8dfb11 --- /dev/null +++ b/src/scintilla_backports/6449_1280ef150bbb.patch @@ -0,0 +1,42 @@ +# HG changeset patch +# User Dimitar Radev +# Date 1517896632 -39600 +# Node ID 1280ef150bbb364e25d01bf04146305389123e78 +# Parent 431b814a54a62d81c8069655bbbebec7bda782e3 +[Bug #1983] Fix double tap word selection on Windows 10 1709 Fall Creators Update. +Times of observed mouse events went backwards causing unsigned overflow. + +diff -r 431b814a54a6 -r 1280ef150bbb doc/ScintillaHistory.html +--- a/doc/ScintillaHistory.html Fri Feb 02 14:34:55 2018 +1100 ++++ b/doc/ScintillaHistory.html Tue Feb 06 16:57:12 2018 +1100 +@@ -519,6 +519,7 @@ + + Georger Araújo + Tobias Kühne ++ Dimitar Radev + + +

+@@ -557,6 +558,10 @@ + Improve VHDL lexer's handling of character literals and escape characters in strings. + +

  • ++ Fix double tap word selection on Windows 10 1709 Fall Creators Update. ++ Bug #1983. ++
  • ++
  • + Fix closing autocompletion lists on Cocoa for macOS 10.13 where the window + was emptying but staying visible. + Bug #1981. +diff -r 431b814a54a6 -r 1280ef150bbb src/Editor.cxx +--- a/src/Editor.cxx Fri Feb 02 14:34:55 2018 +1100 ++++ b/src/Editor.cxx Tue Feb 06 16:57:12 2018 +1100 +@@ -4455,7 +4455,7 @@ + if (shift && !inSelMargin) { + SetSelection(newPos); + } +- if (((curTime - lastClickTime) < Platform::DoubleClickTime()) && Close(pt, lastClick, doubleClickCloseThreshold)) { ++ if ((curTime < (lastClickTime+Platform::DoubleClickTime())) && Close(pt, lastClick, doubleClickCloseThreshold)) { + //Platform::DebugPrintf("Double click %d %d = %d\n", curTime, lastClickTime, curTime - lastClickTime); + SetMouseCapture(true); + FineTickerStart(tickScroll, 100, 10); -- cgit v1.2.3