mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibGUI+GMLPlayground: Set correct undo text for ReplaceAllTextCommand
- Make the text a parameter instead of forcing it to be about GML. - Change the wording to be imperative, and match the action text.
This commit is contained in:
parent
1d7d194062
commit
988130a935
3 changed files with 4 additions and 4 deletions
|
@ -1798,9 +1798,9 @@ void TextEditor::insert_at_cursor_or_replace_selection(StringView text)
|
|||
}
|
||||
}
|
||||
|
||||
void TextEditor::replace_all_text_without_resetting_undo_stack(StringView text)
|
||||
void TextEditor::replace_all_text_without_resetting_undo_stack(StringView text, StringView action_text)
|
||||
{
|
||||
execute<ReplaceAllTextCommand>(text, "GML Playground Format Text");
|
||||
execute<ReplaceAllTextCommand>(text, action_text);
|
||||
did_change();
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue