summaryrefslogtreecommitdiffstats
path: root/akonadish/repl/replStates.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-28 22:51:43 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-28 22:51:43 +0100
commit1998b8d35478205118cea5cc215c682b235434f1 (patch)
tree7a0f04f8b52843d9cbdb622d476a90604c48ff7a /akonadish/repl/replStates.cpp
parentac0e1de3a3895b0e62231364499a2c3327fd74f0 (diff)
parentcc5363fe4b0cd4ea95ac98d9d37f2028fe226145 (diff)
downloadsink-1998b8d35478205118cea5cc215c682b235434f1.tar.gz
sink-1998b8d35478205118cea5cc215c682b235434f1.zip
Merge branch 'develop' of git://anongit.kde.org/akonadi-next into develop
Diffstat (limited to 'akonadish/repl/replStates.cpp')
-rw-r--r--akonadish/repl/replStates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadish/repl/replStates.cpp b/akonadish/repl/replStates.cpp
index 62888d0..55fdf39 100644
--- a/akonadish/repl/replStates.cpp
+++ b/akonadish/repl/replStates.cpp
@@ -156,7 +156,7 @@ static char *akonadi2_cli_next_tab_complete_match(const char *text, int state)
156 if (nearest.isEmpty()) { 156 if (nearest.isEmpty()) {
157 SyntaxTree::Command command = SyntaxTree::self()->match(tab_completion_full_state); 157 SyntaxTree::Command command = SyntaxTree::self()->match(tab_completion_full_state);
158 if (command.first && command.first->completer) { 158 if (command.first && command.first->completer) {
159 QStringList commandCompletions = command.first->completer(tab_completion_full_state, fragment); 159 QStringList commandCompletions = command.first->completer(tab_completion_full_state, fragment, SyntaxTree::self()->state());
160 if (commandCompletions.size() > state) { 160 if (commandCompletions.size() > state) {
161 return qstrdup(commandCompletions[state].toUtf8()); 161 return qstrdup(commandCompletions[state].toUtf8());
162 } 162 }