|
@@ -335,9 +335,12 @@ bool_t pline_parse_module(const struct lys_module *module, faux_argv_t *argv,
|
|
|
(struct lysc_node_leaf *)node;
|
|
|
|
|
|
|
|
|
- if (!str)
|
|
|
+ if (!str) {
|
|
|
+ pline_add_compl(pline, PCOMPL_TYPE, node, NULL);
|
|
|
break;
|
|
|
+ }
|
|
|
|
|
|
+
|
|
|
if (leaf->type->basetype != LY_TYPE_EMPTY)
|
|
|
pexpr->value = faux_str_dup(str);
|
|
|
|
|
@@ -351,8 +354,11 @@ bool_t pline_parse_module(const struct lys_module *module, faux_argv_t *argv,
|
|
|
char *tmp = NULL;
|
|
|
|
|
|
|
|
|
- if (!str)
|
|
|
+ if (!str) {
|
|
|
+ pline_add_compl(pline,
|
|
|
+ PCOMPL_TYPE, node, pexpr->xpath);
|
|
|
break;
|
|
|
+ }
|
|
|
|
|
|
tmp = faux_str_sprintf("[.='%s']", str);
|
|
|
faux_str_cat(&pexpr->xpath, tmp);
|