commit | 51853b21263cf4a2e7d43fa23fa6652ce340393e | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Tue Apr 16 21:53:44 2019 +0200 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue Apr 16 22:03:56 2019 +0200 |
tree | e7b7fb7eb1f0dc353f743ac0e3dc36f8508f35a5 | |
parent | 1bf704ea8de389696585b4784406d0e25de97e52 [diff] |
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
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.