From 0049f43fc82b047a3a3d557ca0d87d17733364ef Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Mon, 23 Dec 2019 13:16:57 +0000 Subject: Fixed selection indent taking an additional line --- scene/gui/text_edit.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/gui') diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 9bcacd6ee3..2c4c7bdebe 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1946,6 +1946,7 @@ void TextEdit::indent_right() { // Ignore if the cursor is not past the first column. if (is_selection_active() && get_selection_to_column() == 0) { + selection_offset = 0; end_line--; } -- cgit v1.2.3