com32: Fix a bug on history of commands.
authorRaphael S.Carvalho <raphael.scarv@gmail.com>
Tue, 17 Sep 2013 19:52:10 +0000 (16:52 -0300)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 30 Sep 2013 14:43:37 +0000 (15:43 +0100)
commita176e98a7be72c17c103c5bd7ca1cf94c66e63ad
tree8c9457178c2286fcc851b008e52a56c9024e4c1d
parent639d33bcac11fd2d4db0668e8455d5086a4e48f1
com32: Fix a bug on history of commands.

Previously, even zero-length commands would be added to the history when
they shoudn't, e.g: just typing enter.

For example, if you type: FOO -> (ENTER) -> (ENTER),
then to get FOO from the history you would have to press the UP key
twice. It also saves a bit of memory.

Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/cli.c