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:
parent
a349e7dbda
commit
6f70238a32
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue