You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
Merge pull request #73597 from MewPurPur/add-missing-queue-redraw--oh-wait-that-barely-narrows-it-down
Fix Indent/Unindent without a selection not causing a redraw
This commit is contained in:
@@ -896,6 +896,7 @@ void CodeEdit::indent_lines() {
|
|||||||
set_caret_column(get_caret_column(c) + selection_offset, false, c);
|
set_caret_column(get_caret_column(c) + selection_offset, false, c);
|
||||||
}
|
}
|
||||||
end_complex_operation();
|
end_complex_operation();
|
||||||
|
queue_redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CodeEdit::unindent_lines() {
|
void CodeEdit::unindent_lines() {
|
||||||
@@ -973,6 +974,7 @@ void CodeEdit::unindent_lines() {
|
|||||||
set_caret_column(initial_cursor_column - removed_characters, false, c);
|
set_caret_column(initial_cursor_column - removed_characters, false, c);
|
||||||
}
|
}
|
||||||
end_complex_operation();
|
end_complex_operation();
|
||||||
|
queue_redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CodeEdit::_calculate_spaces_till_next_left_indent(int p_column) const {
|
int CodeEdit::_calculate_spaces_till_next_left_indent(int p_column) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user