From: Art Cancro Date: Wed, 30 Oct 2019 19:27:29 +0000 (-0400) Subject: do nothing with blank lines, exit on EOF X-Git-Tag: v939~259 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=86052c3ecad8ea7705e9c895d5c0ae3aab549c90 do nothing with blank lines, exit on EOF --- diff --git a/ctdlsh/main.c b/ctdlsh/main.c index 69d7f777b..468c8b261 100644 --- a/ctdlsh/main.c +++ b/ctdlsh/main.c @@ -91,6 +91,14 @@ char *command_generator(const char *text, int state) /* Auto-completer function */ char **ctdlsh_completion(const char *text, int start, int end) { + + + printf("\033[7mcompletion: text='%s', start=%d, end=%d\033[0m\n", text, start , end); + + + + + char **matches = (char **) NULL; rl_completer_word_break_characters = " ";