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:
parent
db422fa499
commit
c587db387c
2 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue