X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client.c;h=40ae9bc87f432b3812182d44da7953052afb2a4b;hb=191e65bdb00536514b8051b6d8e5b4d6772e948f;hp=c47dafe8afd300183c8d3853f9da7e0198b4c88d;hpb=f8931d4607fdf8cb98761b9814d068256d2925a3;p=paraslash.git diff --git a/client.c b/client.c index c47dafe8..40ae9bc8 100644 --- a/client.c +++ b/client.c @@ -316,11 +316,7 @@ static void lsatt_completer(struct i9e_completion_info *ci, struct i9e_completion_result *cr) { char *opts[] = {"-i", "-l", "-r", NULL}; - - if (ci->word[0] == '-') - i9e_complete_option(opts, ci, cr); - else - complete_attributes(ci->word, &cr->matches); + i9e_complete_option(opts, ci, cr); } static void mvatt_completer(struct i9e_completion_info *ci, @@ -447,7 +443,7 @@ static int client_i9e_line_handler(char *line) client_disconnect(ct); PARA_DEBUG_LOG("line: %s\n", line); ret = make_client_argv(line); - if (ret < 0) + if (ret <= 0) return ret; ret = client_connect(ct, &sched, NULL, NULL); if (ret < 0) @@ -475,7 +471,7 @@ __noreturn static void interactive_session(void) .completers = completers, }; - PARA_NOTICE_LOG("\n%s\n", VERSION_TEXT("client")); + PARA_NOTICE_LOG("\n%s\n", version_text("client")); if (ct->conf.history_file_given) history_file = para_strdup(ct->conf.history_file_arg); else {