Skip to content

Commit

Permalink
Merge pull request #46572 from jmb462/fix-selection-error-after-comme…
Browse files Browse the repository at this point in the history
…nting-or-indenting

Fix selection error after commenting or indenting text (Fix #46477 issue)
  • Loading branch information
akien-mga authored Mar 7, 2021
2 parents dc2207d + 5c58d37 commit 9b853d7
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 @@ -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;
Expand Down

0 comments on commit 9b853d7

Please sign in to comment.