Fix some clang warnings
This commit is contained in:
parent
1d9a9bc308
commit
aa6a7e544d
|
@ -588,7 +588,7 @@ Optional<Key> NCursesUI::get_next_key()
|
||||||
if (not c)
|
if (not c)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
auto parse_key = [this](unsigned char c) -> Key {
|
auto parse_key = [](unsigned char c) -> Key {
|
||||||
if (c == control('m') or c == control('j'))
|
if (c == control('m') or c == control('j'))
|
||||||
return {Key::Return};
|
return {Key::Return};
|
||||||
if (c == control('i'))
|
if (c == control('i'))
|
||||||
|
@ -733,7 +733,7 @@ Optional<Key> NCursesUI::get_next_key()
|
||||||
return {};
|
return {};
|
||||||
};
|
};
|
||||||
|
|
||||||
auto parse_ss3 = [this]() -> Optional<Key> {
|
auto parse_ss3 = []() -> Optional<Key> {
|
||||||
switch (get_char().value_or((unsigned char)0xff))
|
switch (get_char().value_or((unsigned char)0xff))
|
||||||
{
|
{
|
||||||
case 'A': return Key{Key::Up};
|
case 'A': return Key{Key::Up};
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
class DisplayAtom;
|
struct DisplayAtom;
|
||||||
|
|
||||||
struct NCursesWin;
|
struct NCursesWin;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user