All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Pelletier <subdino2004@yahoo.fr>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: [PATCH] Tiny command line fix
Date: Sun, 03 Jul 2005 11:39:14 +0200	[thread overview]
Message-ID: <42C7B242.9030804@yahoo.fr> (raw)

[-- 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 */

             reply	other threads:[~2005-07-03  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-03  9:39 Vincent Pelletier [this message]
2005-07-03 18:24 ` [PATCH] Tiny command line fix Yoshinori K. Okuji

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C7B242.9030804@yahoo.fr \
    --to=subdino2004@yahoo.fr \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.