* grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-11 14:36:02 +01:00
parent b63d89b684
commit 1a1ac4f6cb
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Bump up the version to beta2.

View file

@ -77,8 +77,9 @@ grub_cmd_cat (grub_extcmd_context_t ctxt, int argc, char **args)
}
}
while ((key = grub_getkey_noblock ()) != GRUB_TERM_ESC)
;
do
key = grub_getkey_noblock ();
while (key != GRUB_TERM_ESC && key != GRUB_TERM_NO_KEY);
}
grub_xputs ("\n");