1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

TextEditor: Don't try to move(lambda)

The move constructor of a lambda just copies it anyway.

Even if the first move() left an 'empty' closure behind, then
'm_editor->on_cursor_change' would only be able to see an empty
closure, which is certainly not what was intended.
This commit is contained in:
Ben Wiederhake 2020-08-29 13:44:25 +02:00 committed by Andreas Kling
parent db422fa499
commit c587db387c
2 changed files with 10 additions and 10 deletions

View file

@ -60,6 +60,7 @@ private:
void update_preview();
void update_markdown_preview();
void update_html_preview();
void update_statusbar_cursor_position();
virtual void drop_event(GUI::DropEvent&) override;