diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index 9685129a..f87a914e 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -684,7 +684,7 @@ Optional TerminalUI::get_next_key() return resize(dimensions()); } - static auto get_char = [this]() -> Optional { + static auto get_char = []() -> Optional { if (not fd_readable(STDIN_FILENO)) return {};