fix selection error after commenting or indenting text
This commit is contained in:
parent
8fbe644b6e
commit
5c58d3731c
|
@ -2993,8 +2993,6 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||||
} else {
|
} else {
|
||||||
if (cursor.line < selection.selecting_line || (cursor.line == selection.selecting_line && cursor.column < selection.selecting_column)) {
|
if (cursor.line < selection.selecting_line || (cursor.line == selection.selecting_line && cursor.column < selection.selecting_column)) {
|
||||||
if (selection.shiftclick_left) {
|
if (selection.shiftclick_left) {
|
||||||
SWAP(selection.from_column, selection.to_column);
|
|
||||||
SWAP(selection.from_line, selection.to_line);
|
|
||||||
selection.shiftclick_left = !selection.shiftclick_left;
|
selection.shiftclick_left = !selection.shiftclick_left;
|
||||||
}
|
}
|
||||||
selection.from_column = cursor.column;
|
selection.from_column = cursor.column;
|
||||||
|
|
Loading…
Reference in a new issue