Fix wrong selection on cloning a line down in the editor
(cherry picked from commit 28f74327be
)
This commit is contained in:
parent
d679edfa7f
commit
367048030b
|
@ -1261,7 +1261,7 @@ void CodeTextEditor::clone_lines_down() {
|
||||||
text_editor->cursor_set_line(cursor_new_line);
|
text_editor->cursor_set_line(cursor_new_line);
|
||||||
text_editor->cursor_set_column(cursor_new_column);
|
text_editor->cursor_set_column(cursor_new_column);
|
||||||
if (selection_active) {
|
if (selection_active) {
|
||||||
text_editor->select(to_line, to_column, 2 * to_line - from_line, 2 * to_column - from_column);
|
text_editor->select(to_line, to_column, 2 * to_line - from_line, to_line == from_line ? 2 * to_column - from_column : to_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
text_editor->end_complex_operation();
|
text_editor->end_complex_operation();
|
||||||
|
|
Loading…
Reference in New Issue