Fix get_breakpointed_lines crashing Godot

Fixes #60668.
This commit is contained in:
Paweł Fertyk 2022-05-12 00:15:37 +02:00
parent 9c746b3213
commit 3d5dd91f22

View file

@ -4711,9 +4711,7 @@ void TextEdit::add_gutter(int p_at) {
gutters.insert(p_at, GutterInfo());
}
for (int i = 0; i < text.size() + 1; i++) {
text.add_gutter(p_at);
}
text.add_gutter(p_at);
emit_signal(SNAME("gutter_added"));
update();
}
@ -4723,9 +4721,7 @@ void TextEdit::remove_gutter(int p_gutter) {
gutters.remove_at(p_gutter);
for (int i = 0; i < text.size() + 1; i++) {
text.remove_gutter(p_gutter);
}
text.remove_gutter(p_gutter);
emit_signal(SNAME("gutter_removed"));
update();
}