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:
parent
1749442a1c
commit
4cbf7f24be
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ static ErrorOr<NonnullRefPtr<GUI::Window>> create_find_window(VT::TerminalWidget
|
|||
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();
|
||||
if (needle.is_empty()) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue