X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=examples%2Freadline%2Fmain.c;fp=examples%2Freadline%2Fmain.c;h=6095808e662f01a230059a016901388e7699e9db;hp=a30953d16eef0631c3cf1e879881fcd04b72b5b8;hb=dcc0daee87364ab2e0b312829c6dd612c33e6a54;hpb=d9d05d35bbf9bee36d9ce2b8329b5e2a6a19d397 diff --git a/examples/readline/main.c b/examples/readline/main.c index a30953d..6095808 100644 --- a/examples/readline/main.c +++ b/examples/readline/main.c @@ -70,7 +70,7 @@ static char *my_completion_entry(const char *s, int state) return NULL; item_str = ec_comp_item_get_str(item); - if (c->count_full == 1) { + if (ec_comp_count(c, EC_COMP_FULL) == 1) { /* don't add the trailing space for partial completions */ if (state == 0) { @@ -113,8 +113,7 @@ static char *get_node_help(const struct ec_comp_item *item) const char *node_desc = NULL; grp = ec_comp_item_get_grp(item); - state = grp->state; - for (state = grp->state; state != NULL; + for (state = ec_comp_group_get_state(grp); state != NULL; state = ec_parse_get_parent(state)) { node = ec_parse_get_node(state); if (node_help == NULL)