mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +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()
|
void GTextEditor::document_did_change()
|
||||||
{
|
{
|
||||||
recompute_all_visual_lines();
|
did_change();
|
||||||
ensure_cursor_is_valid();
|
|
||||||
update();
|
update();
|
||||||
|
|
||||||
undo_action().set_enabled(can_undo());
|
|
||||||
redo_action().set_enabled(can_redo());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GTextEditor::document_did_set_text()
|
void GTextEditor::document_did_set_text()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue