From f8f1559ae010b0d60e4ddc6842d252ef3badd432 Mon Sep 17 00:00:00 2001 From: subdino Date: Mon, 4 Jul 2005 13:50:10 +0000 Subject: [PATCH] 2004-07-04 Vincent Pelletier * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d when backspace is pressed at beginning of line. --- ChangeLog | 5 +++++ normal/cmdline.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index e45a3c011..8549d6056 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-04 Vincent Pelletier + + * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d + when backspace is pressed at beginning of line. + 2005-07-03 Yoshinori Okuji * DISTLIST: Added genfslist.sh. diff --git a/normal/cmdline.c b/normal/cmdline.c index e431f2262..8b590353c 100644 --- a/normal/cmdline.c +++ b/normal/cmdline.c @@ -717,6 +717,8 @@ grub_cmdline_get (const char *prompt, char cmdline[], unsigned max_len, lpos--; cl_set_pos (); } + else + break; /* fall through */ case 4: /* Ctrl-d */