1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:07:34 +00:00

Terminal: Tighten lambda captures in create_find_window()

This commit is contained in:
Andreas Kling 2021-11-24 23:32:43 +01:00
parent 1749442a1c
commit 4cbf7f24be

View file

@ -231,7 +231,7 @@ static ErrorOr<NonnullRefPtr<GUI::Window>> create_find_window(VT::TerminalWidget
terminal.set_selection(found_range); terminal.set_selection(found_range);
} }
}; };
find_forwards->on_click = [&](auto) { find_forwards->on_click = [&terminal, find_textbox, match_case, wrap_around](auto) {
auto needle = find_textbox->text(); auto needle = find_textbox->text();
if (needle.is_empty()) { if (needle.is_empty()) {
return; return;