Define a constant for function-not-found in input.cpp

Avoids differences in widths of wchar_t, hopefully addressing
issue #2284
This commit is contained in:
ridiculousfish
2015-08-16 18:45:42 -07:00
parent b615534d8d
commit e2f16ec20e
3 changed files with 5 additions and 6 deletions

View File

@@ -455,7 +455,7 @@ static int builtin_commandline(parser_t &parser, wchar_t **argv)
for (i=w.woptind; i<argc; i++)
{
wchar_t c = input_function_get_code(argv[i]);
if (c != (wchar_t)(-1))
if (c != INPUT_CODE_NONE)
{
/*
input_unreadch inserts the specified keypress or