Merge pull request #46572 from jmb462/fix-selection-error-after-commenting-or-indenting
Fix selection error after commenting or indenting text (Fix #46477 issue)
This commit is contained in:
commit
9b853d7a7b
1 changed files with 0 additions and 2 deletions
|
@ -2989,8 +2989,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