diff options
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 496892db3..b4e940689 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -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 --git a/src/Editor.cxx b/src/Editor.cxx index 35c8a8d6b..5330ea45b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3745,7 +3745,7 @@ int Editor::KeyCommand(unsigned int iMessage) { 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(); |