[tyndur-devel] [PATCH 4/9] shell: Tab-Completion fuer Objekte die Datei und Verzeichnis sind
Kevin Wolf ·
From: Antoine Kaufmann <toni at tyndur.org> * shell: Tab-Completion fuer Objekte die Datei und Verzeichnis sind Signed-off-by: Antoine Kaufmann <toni at tyndur.org> Signed-off-by: Kevin Wolf <kevin at tyndur.org> --- src/modules/c/shell/completion.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/c/shell/completion.c b/src/modules/c/shell/completion.c index 3a57615..939d892 100644 --- a/src/modules/c/shell/completion.c +++ b/src/modules/c/shell/completion.c @@ -284,9 +284,9 @@ static char** shell_file_matches(const char* word) char name[namelen + dir_len + 3]; char end; - // Bei Verzeichnissen wollen wir einen Slash am Ende, sonst ein + // Bei Verzeichnissen wollen wir einen Slash am Ende, sonst einen // Leerschlag - if (dentry->type == IO_DIRENTRY_DIR) { + if (dentry->type & IO_DIRENTRY_DIR) { end = '/'; } else { end = ' '; -- 1.6.0.2