From: Trübenbach, Ralf <Ralf.Truebenbach@men.de>
Date: Wed, 14 Apr 2010 09:15:16 +0000 (+0200)
Subject: command.c: Enable auto tab for the editenv command
X-Git-Tag: v2025.01-rc5-pxa1908~20260
X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=39f7aacf3fd285b42b92c2c2d66d95339a3569cc;p=u-boot.git

command.c: Enable auto tab for the editenv command

Enable the auto completion (with TAB) of the environment variable name
after the editenv command.

Signed-off-by: Ralf Trübenbach <ralf.truebenbach@men.de>
---

diff --git a/common/command.c b/common/command.c
index 0c66b7a1d9..67ad692004 100644
--- a/common/command.c
+++ b/common/command.c
@@ -188,6 +188,9 @@ static void install_auto_complete_handler(const char *cmd,
 
 void install_auto_complete(void)
 {
+#if defined(CONFIG_CMD_EDITENV)
+	install_auto_complete_handler("editenv", var_complete);
+#endif
 	install_auto_complete_handler("printenv", var_complete);
 	install_auto_complete_handler("setenv", var_complete);
 #if defined(CONFIG_CMD_RUN)