From 9de731a9ec5ede1ec401c0acde902772ab700008 Mon Sep 17 00:00:00 2001 From: VolTer Date: Sun, 19 Feb 2023 21:08:04 +0100 Subject: [PATCH] Fix Indent/Unindent without a selection not causing a redraw --- scene/gui/code_edit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index e2f7ec860c9..ee39327d4d1 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -896,6 +896,7 @@ void CodeEdit::indent_lines() { set_caret_column(get_caret_column(c) + selection_offset, false, c); } end_complex_operation(); + queue_redraw(); } void CodeEdit::unindent_lines() { @@ -973,6 +974,7 @@ void CodeEdit::unindent_lines() { set_caret_column(initial_cursor_column - removed_characters, false, c); } end_complex_operation(); + queue_redraw(); } int CodeEdit::_calculate_spaces_till_next_left_indent(int p_column) const {