summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-30 16:20:37 +0100
committerGitHub <noreply@github.com>2019-12-30 16:20:37 +0100
commit5b687b4c93b56a6de08e19125127dc40b7479331 (patch)
treed49b4f5e316d8289408ad948febf2d4fd73e6041 /scene
parent9ef937090447d0ddca96811de00a5f8d278a6302 (diff)
parent0049f43fc82b047a3a3d557ca0d87d17733364ef (diff)
Merge pull request #34563 from Paulb23/23751_extra_line_indent
Fixed selection indent taking an additional line
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
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--;
}