Fix a bug with path parsing
It is now required that the whole path is parsed (that is, there is a
space after the path, or a EOI), when not completing, so that all path
types are tried. Before this, the parser could stop before trying
different path types.
Change-Id: I1964f892418508e6356c4a8811ab00ce1acfa24d
diff --git a/src/parser.cpp b/src/parser.cpp
index ba6690d..cf433e2 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -44,6 +44,7 @@
std::set<std::string> completions;
command_ parsedCommand;
ParserContext ctx(*m_schema, dataPathToSchemaPath(m_curDir));
+ ctx.m_completing = true;
auto it = line.begin();
boost::spirit::x3::error_handler<std::string::const_iterator> errorHandler(it, line.end(), errorStream);