* [PATCH] Tiny command line fix
@ 2005-07-03 9:39 Vincent Pelletier
2005-07-03 18:24 ` Yoshinori K. Okuji
0 siblings, 1 reply; 2+ messages in thread
From: Vincent Pelletier @ 2005-07-03 9:39 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
-----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 <subdino2004@yahoo.fr>
* 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-----
[-- Attachment #2: cmdline.c.diff --]
[-- Type: text/plain, Size: 488 bytes --]
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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-03 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 9:39 [PATCH] Tiny command line fix Vincent Pelletier
2005-07-03 18:24 ` Yoshinori K. Okuji
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.