diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 1ef6bfd4..2e5ba92e 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -656,7 +656,7 @@ Optional NCursesUI::get_next_key() }; constexpr auto direction = make_array({Key::Up, Key::Down, Key::Right, Key::Left, Key::Home, Key::End}); - auto parse_csi = [this]() -> Optional { + auto parse_csi = [this, &direction]() -> Optional { const Codepoint c1 = wgetch(m_window); if (c1 >= 'A' and c1 <= 'F') return Key{direction[c1 - 'A']};