grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Tiny command line fix


From: Vincent Pelletier
Subject: [PATCH] Tiny command line fix
Date: Sun, 03 Jul 2005 11:39:14 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is a patch that fixes "backspace" ('\b') acting as "delete"
(ctrl-d) when at beginning of line.

2005-07-03  Vincent Pelletier  <address@hidden>

    * normal/comandline.c
      (grub_cmdline_get): Don't fallback on ctrl-d when backspace is
      pressed at beginning of line.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCx7JCFEQoKRQyjtURAsUJAJ9JC9RdJsh5cxiJR1nFK2KReRxbRwCfQhzQ
WG4cnT+fPtV5BIJfCZrcNN4=
=eaKt
-----END PGP SIGNATURE-----
Index: normal/cmdline.c
===================================================================
RCS file: /cvsroot/grub/grub2/normal/cmdline.c,v
retrieving revision 1.14
diff -u -p -r1.14 cmdline.c
--- normal/cmdline.c    8 Mar 2005 01:01:06 -0000       1.14
+++ normal/cmdline.c    3 Jul 2005 09:31:59 -0000
@@ -717,6 +717,8 @@ grub_cmdline_get (const char *prompt, ch
              lpos--;
              cl_set_pos ();
            }
+          else
+            break;
          /* fall through */
          
        case 4: /* Ctrl-d */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]