Fix a bug with path completion

When creating suggestions through the dataPathListEnd rule,
this position saved to the m_completionIterator was wrong. For example,
when completing this command:
set example:list
the completion iterator would get set just before "list". Now it
correctly sets it just before "example". This bug was not caught by
tests because tests only use cd and the rule for that command never uses
the dataPathListEnd rule.

Change-Id: Ie2f94c26e9d600ebf8246aa97ed7045b4eea6faa
2 files changed
tree: e7b7fb7eb1f0dc353f743ac0e3dc36f8508f35a5
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. LICENSE.md
  8. README.md
  9. ci/
  10. cmake/
  11. docs/
  12. example-schema.yang
  13. src/
  14. submodules/
  15. sysrepo_vars.hpp.in
  16. tests/
README.md

Console interface to NETCONF servers

Credits

Copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Copyright © CESNET, https://www.cesnet.cz/ . Most of the code was written by Václav Kubernát (FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.