diff options
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | src/Editor.cxx | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 2e837816f..8ddce8c7b 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -527,6 +527,10 @@ Released 19 February 2017. </li> <li> + Fix to stream selection mode when moving caret up or down. + <a href="http://sourceforge.net/p/scintilla/bugs/1905/">Bug #1905</a>. + </li> + <li> Fix to prevent double scrolling on GTK+ with X11. <a href="http://sourceforge.net/p/scintilla/bugs/1901/">Bug #1901</a>. </li> diff --git a/src/Editor.cxx b/src/Editor.cxx index a2b087046..9366619ce 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3111,6 +3111,9 @@ SelectionPosition Editor::PositionUpOrDown(SelectionPosition spStart, int direct } void Editor::CursorUpOrDown(int direction, Selection::selTypes selt) { + if ((selt == Selection::noSel) && sel.MoveExtends()) { + selt = Selection::selStream; + } SelectionPosition caretToUse = sel.Range(sel.Main()).caret; if (sel.IsRectangular()) { if (selt == Selection::noSel) { |