ldlinux: Don't return NULL on KEY_ESC.
authorMatt Fleming <matt.fleming@intel.com>
Thu, 15 Nov 2012 19:46:54 +0000 (19:46 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 26 Nov 2012 12:34:13 +0000 (12:34 +0000)
The old command line code in 4.06 ignores KEY_ESC and KEY_CTRL('C') so
we should do the same. What currently happens if a user hits ESC is
that we return from edit_cmdline() as though we'd timed out waiting
for user input.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/cli.c

index d876895..6d03f16 100644 (file)
@@ -215,12 +215,6 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
            done = true;
            break;
 
-       case KEY_ESC:
-       case KEY_CTRL('C'):
-           ret = NULL;
-           done = true;
-           break;
-
        case KEY_BACKSPACE:
        case KEY_DEL:
            if (cursor) {