diff options
| author | Neil <nyamatongwe@gmail.com> | 2023-10-29 09:25:20 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2023-10-29 09:25:20 +1100 | 
| commit | 60e0be1d49d4ba0e093a28bd3c2039f0c1ef8344 (patch) | |
| tree | 3ed361c7cd99c7be47e8d2ebad039bfbcb3c7093 /src/Editor.cxx | |
| parent | 29ff682132a9de383243794764bd12d9e43e4899 (diff) | |
| download | scintilla-mirror-60e0be1d49d4ba0e093a28bd3c2039f0c1ef8344.tar.gz | |
Bug [#2078]. Fix rectangular selections with SCI_MOVESELECTEDLINESUP and
SCI_MOVESELECTEDLINESDOWN.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 5 | 
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 | 
