mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
GTextEditor: Fire the on_change hook on GTextDocument change
This commit is contained in:
parent
a349e7dbda
commit
6f70238a32
Notes:
sideshowbarker
2024-07-19 11:01:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6f70238a322
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
Reference in a new issue