aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-02-23 16:33:04 +1100
committerNeil <nyamatongwe@gmail.com>2017-02-23 16:33:04 +1100
commit3cbf72fe0b13700358b71c17b32e35ba9f06c814 (patch)
tree9fbb3847018340b6e87e709d74d67bc4742ca528 /src
parent361c26ca4b7b7b3c91ac35fb0533893d319c888f (diff)
downloadscintilla-mirror-3cbf72fe0b13700358b71c17b32e35ba9f06c814.tar.gz
Bug [#1905]. Fix stream selection mode when moving caret up or down.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
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) {