GTextEditor: Fire the on_change hook on GTextDocument change

This commit is contained in:
Andreas Kling 2019-11-30 18:54:53 +01:00
parent a349e7dbda
commit 6f70238a32
Notes: sideshowbarker 2024-07-19 11:01:07 +09:00

View file

@ -1373,12 +1373,8 @@ void GTextEditor::document_did_insert_line(int line_index)
void GTextEditor::document_did_change()
{
recompute_all_visual_lines();
ensure_cursor_is_valid();
did_change();
update();
undo_action().set_enabled(can_undo());
redo_action().set_enabled(can_redo());
}
void GTextEditor::document_did_set_text()