1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:38:13 +00:00

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

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()