diff options
author | jmb462 <jmb462@gmail.com> | 2021-03-01 21:57:26 +0100 |
---|---|---|
committer | jmb462 <jmb462@gmail.com> | 2021-03-01 21:57:26 +0100 |
commit | 5c58d3731c504561f3ba21dd40756c5c19ae1ce3 (patch) | |
tree | 2eb45806a9c227a858e94207d4cbbeaca048a504 /scene | |
parent | 8fbe644b6e6548dc2c9f9d675bc17f13b74e747b (diff) |
fix selection error after commenting or indenting text
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 36aa18417d..30a0275eb8 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2993,8 +2993,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; |