aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ade5094f7..796279871 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -980,7 +980,10 @@ void Editor::VerticalCentreCaret() {
void Editor::MoveSelectedLines(int lineDelta) {
if (sel.IsRectangular()) {
- return;
+ // Convert to stream selection
+ const SelectionRange rangeRectangular = sel.Rectangular();
+ sel.Clear();
+ sel.SetSelection(rangeRectangular);
}
// if selection doesn't start at the beginning of the line, set the new start