summaryrefslogtreecommitdiffstats
path: root/lib/readline_simple.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-03-01 21:08:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-03-01 21:08:14 +0100
commitdf31bb46be18edbaca1adbef3dcb16d2033942b9 (patch)
tree98ca794cf8d8753c47135c9b3189a49fd5cb7ea2 /lib/readline_simple.c
parenta1a747af7f7bd816af73d808e1c750f536873c3d (diff)
downloadbarebox-df31bb46be18edbaca1adbef3dcb16d2033942b9.tar.gz
barebox-df31bb46be18edbaca1adbef3dcb16d2033942b9.tar.xz
implement TAB completion
Diffstat (limited to 'lib/readline_simple.c')
-rw-r--r--lib/readline_simple.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/readline_simple.c b/lib/readline_simple.c
index b1ac64a545..9dd21545e2 100644
--- a/lib/readline_simple.c
+++ b/lib/readline_simple.c
@@ -118,14 +118,6 @@ int readline (const char *prompt, char *line, int len)
*/
if (n < CONFIG_CBSIZE-2) {
if (c == '\t') { /* expand TABs */
-#ifdef CONFIG_AUTO_COMPLETE
- /* if auto completion triggered just continue */
- *p = '\0';
- if (cmd_auto_complete(prompt, line, &n, &col)) {
- p = line + n; /* reset */
- continue;
- }
-#endif
puts (tab_seq+(col&07));
col += 8 - (col&07);
} else {
@@ -155,4 +147,4 @@ int readline (const char *prompt, char *line, int len)
* Enable the "Simple parser" in "General Settings", "Select your shell" to
* get back the old console feeling.
*
- */ \ No newline at end of file
+ */