diff options
author | 2017-06-17 18:09:23 -0400 | |
---|---|---|
committer | 2017-06-17 18:09:23 -0400 | |
commit | c79314c9bd8efc6e521664bf4de182370c436c09 (patch) | |
tree | 9ce81d4de67843af7f293c2dc556e9c6e257bcb9 /src/scintilla_backports/6215_1f02cb4a5b26.patch | |
parent | b82ab307b7ee8bcc547aa076c17355ad7bb7ea24 (diff) | |
download | textadept-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/6215_1f02cb4a5b26.patch')
-rw-r--r-- | src/scintilla_backports/6215_1f02cb4a5b26.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/scintilla_backports/6215_1f02cb4a5b26.patch b/src/scintilla_backports/6215_1f02cb4a5b26.patch new file mode 100644 index 00000000..093df2cb --- /dev/null +++ b/src/scintilla_backports/6215_1f02cb4a5b26.patch @@ -0,0 +1,33 @@ +# HG changeset patch +# User Neil <nyamatongwe@gmail.com> +# Date 1493072833 -36000 +# Node ID 1f02cb4a5b26d6774b09fc59f8fb4fbd1098c5ef +# Parent 23af3d7bb75a20bd0e3c0ccf3f341b9defa070e5 +Bug [#1940]. Canceling modes with the Esc key preserves a rectangular selection. + +diff -r 23af3d7bb75a -r 1f02cb4a5b26 doc/ScintillaHistory.html +--- a/doc/ScintillaHistory.html Mon Apr 24 08:36:05 2017 +1000 ++++ b/doc/ScintillaHistory.html Tue Apr 25 08:27:13 2017 +1000 +@@ -560,6 +560,10 @@ + <a href="http://sourceforge.net/p/scintilla/bugs/1931/">Bug #1931</a>. + </li> + <li> ++ Canceling modes with the Esc key preserves a rectangular selection. ++ <a href="http://sourceforge.net/p/scintilla/bugs/1940/">Bug #1940</a>. ++ </li> ++ <li> + On Cocoa, a leak of mouse tracking areas was fixed. + </li> + <li> +diff -r 23af3d7bb75a -r 1f02cb4a5b26 src/Editor.cxx +--- a/src/Editor.cxx Mon Apr 24 08:36:05 2017 +1000 ++++ b/src/Editor.cxx Tue Apr 25 08:27:13 2017 +1000 +@@ -3745,7 +3745,7 @@ + case SCI_CANCEL: // Cancel any modes - handled in subclass + // Also unselect text + CancelModes(); +- if (sel.Count() > 1) { ++ if ((sel.Count() > 1) && !sel.IsRectangular()) { + // Drop additional selections + InvalidateWholeSelection(); + sel.DropAdditionalRanges(); |