Fix compilation error

This commit is contained in:
Maxime Coste 2018-12-09 22:05:32 +11:00
parent 10163488c1
commit c6f98f8483

View File

@ -656,7 +656,7 @@ Optional<Key> 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<Key> {
auto parse_csi = [this, &direction]() -> Optional<Key> {
const Codepoint c1 = wgetch(m_window);
if (c1 >= 'A' and c1 <= 'F')
return Key{direction[c1 - 'A']};