From a6d04e09a8476773c08eca37acaea95e4f83e5f2 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Wed, 23 Dec 2015 20:52:44 +0100 Subject: return the command even if the syntax doesn't have an exec lambda we check it elsewhere, and this is useful for autocomplete use --- akonadi2_cli/syntaxtree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } - if (lastFullSyntax && lastFullSyntax->lambda) { + if (lastFullSyntax) { while (commandLineIt.hasNext()) { tailCommands << commandLineIt.next(); } -- cgit v1.2.3