From 5c58d3731c504561f3ba21dd40756c5c19ae1ce3 Mon Sep 17 00:00:00 2001 From: jmb462 Date: Mon, 1 Mar 2021 21:57:26 +0100 Subject: [PATCH] fix selection error after commenting or indenting text --- scene/gui/text_edit.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 36aa18417da..30a0275eb8c 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2993,8 +2993,6 @@ void TextEdit::_gui_input(const Ref &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;