diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 20:52:44 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 20:52:44 +0100 |
commit | a6d04e09a8476773c08eca37acaea95e4f83e5f2 (patch) | |
tree | 05f93712c51519da53cfb53c3dc3f511d1e8b680 /akonadi2_cli/syntaxtree.cpp | |
parent | 9e02fbcefabb75c4ea16d7c28fd562100251fdfc (diff) | |
download | sink-a6d04e09a8476773c08eca37acaea95e4f83e5f2.tar.gz sink-a6d04e09a8476773c08eca37acaea95e4f83e5f2.zip |
return the command even if the syntax doesn't have an exec lambda
we check it elsewhere, and this is useful for autocomplete use
Diffstat (limited to 'akonadi2_cli/syntaxtree.cpp')
-rw-r--r-- | akonadi2_cli/syntaxtree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadi2_cli/syntaxtree.cpp b/akonadi2_cli/syntaxtree.cpp index 968802d..cebfc4b 100644 --- a/akonadi2_cli/syntaxtree.cpp +++ b/akonadi2_cli/syntaxtree.cpp | |||
@@ -104,7 +104,7 @@ SyntaxTree::Command SyntaxTree::match(const QStringList &commandLine) const | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | if (lastFullSyntax && lastFullSyntax->lambda) { | 107 | if (lastFullSyntax) { |
108 | while (commandLineIt.hasNext()) { | 108 | while (commandLineIt.hasNext()) { |
109 | tailCommands << commandLineIt.next(); | 109 | tailCommands << commandLineIt.next(); |
110 | } | 110 | } |