handle_getc(): check for NULL ni before writing ->alt

pull/587/head
nick black 4 years ago
parent e97d16b85f
commit 1526cfc7b8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -227,7 +227,9 @@ handle_getc(notcurses* nc, int kpress, ncinput* ni){
// interpret it as alt + candidate FIXME broken for first char matching
// trie, second char not -- will read as alt+second char...
if(candidate > 0 && candidate < 0x80){
ni->alt = true;
if(ni){
ni->alt = true;
}
return candidate;
}
// FIXME ungetc on failure! walk trie backwards or something

Loading…
Cancel
Save