diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 048896d5..3e1a4c6b 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -588,7 +588,7 @@ Optional NCursesUI::get_next_key() if (not c) return {}; - auto parse_key = [this](unsigned char c) -> Key { + auto parse_key = [](unsigned char c) -> Key { if (c == control('m') or c == control('j')) return {Key::Return}; if (c == control('i')) @@ -733,7 +733,7 @@ Optional NCursesUI::get_next_key() return {}; }; - auto parse_ss3 = [this]() -> Optional { + auto parse_ss3 = []() -> Optional { switch (get_char().value_or((unsigned char)0xff)) { case 'A': return Key{Key::Up}; diff --git a/src/ncurses_ui.hh b/src/ncurses_ui.hh index a8734af4..93aad324 100644 --- a/src/ncurses_ui.hh +++ b/src/ncurses_ui.hh @@ -15,7 +15,7 @@ namespace Kakoune { -class DisplayAtom; +struct DisplayAtom; struct NCursesWin;