Browse Source

Merge pull request #46572 from jmb462/fix-selection-error-after-commenting-or-indenting

Fix selection error after commenting or indenting text (Fix #46477 issue)
Rémi Verschelde 4 years ago
parent
commit
9b853d7a7b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      scene/gui/text_edit.cpp

+ 0 - 2
scene/gui/text_edit.cpp

@@ -2989,8 +2989,6 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
 					} else {
 						if (cursor.line < selection.selecting_line || (cursor.line == selection.selecting_line && cursor.column < selection.selecting_column)) {
 							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.from_column = cursor.column;