diff options
| -rw-r--r-- | src/Editor.cxx | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 9ec5994f9..d9ffb3ee0 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -850,6 +850,12 @@ int Editor::MovePositionTo(SelectionPosition newPos, Selection::selTypes selt, b  	int delta = newPos.Position() - sel.MainCaret();  	newPos = ClampPositionIntoDocument(newPos);  	newPos = MovePositionOutsideChar(newPos, delta); +	if (!multipleSelection && sel.IsRectangular() && (selt == Selection::selStream)) { +		// Can't turn into multiple selection so clear additional selections +		InvalidateSelection(SelectionRange(newPos), true); +		SelectionRange rangeMain = sel.RangeMain(); +		sel.SetSelection(rangeMain); +	}  	if (!sel.IsRectangular() && (selt == Selection::selRectangle)) {  		// Switching to rectangular  		SelectionRange rangeMain = sel.RangeMain(); | 
