Skip to content

Commit

Permalink
fix selection error after commenting or indenting text
Browse files Browse the repository at this point in the history
  • Loading branch information
jmb462 committed Mar 1, 2021
1 parent 8fbe644 commit 5c58d37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c58d37

Please sign in to comment.