aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-11-15 19:46:54 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-26 12:34:13 +0000
commitb8dfe78a33e70f657f8aadb48de644a92bf82850 (patch)
tree582de76e6d08c1d7024c39e1b0b35ccf329ecddb /com32/elflink/ldlinux
parent4e140a59517f79bf593bec0f5a80810aa877f3ed (diff)
downloadsyslinux-b8dfe78a33e70f657f8aadb48de644a92bf82850.tar.gz
syslinux-b8dfe78a33e70f657f8aadb48de644a92bf82850.tar.xz
syslinux-b8dfe78a33e70f657f8aadb48de644a92bf82850.zip
ldlinux: Don't return NULL on KEY_ESC.
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>
Diffstat (limited to 'com32/elflink/ldlinux')
-rw-r--r--com32/elflink/ldlinux/cli.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index d876895c..6d03f16b 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -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) {