diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 20:54:44 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 20:54:44 +0100 |
commit | d0cd6658f72f2e509764d49fefbed7dd7fa9f48d (patch) | |
tree | 6696386c0604a4615d23abcd7004f1dec83ac573 /akonadi2_cli/syntax_modules | |
parent | a9eb4e0c25ff4153a57a142d3ac28b8c5fc1a13d (diff) | |
download | sink-d0cd6658f72f2e509764d49fefbed7dd7fa9f48d.tar.gz sink-d0cd6658f72f2e509764d49fefbed7dd7fa9f48d.zip |
don't include help in the autocomplete list; it's a bit banal
Diffstat (limited to 'akonadi2_cli/syntax_modules')
-rw-r--r-- | akonadi2_cli/syntax_modules/core_syntax.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/akonadi2_cli/syntax_modules/core_syntax.cpp b/akonadi2_cli/syntax_modules/core_syntax.cpp index ca5ac4c..393a0a5 100644 --- a/akonadi2_cli/syntax_modules/core_syntax.cpp +++ b/akonadi2_cli/syntax_modules/core_syntax.cpp | |||
@@ -100,7 +100,8 @@ QStringList showHelpCompleter(const QStringList &commands, const QString &fragme | |||
100 | QStringList items; | 100 | QStringList items; |
101 | 101 | ||
102 | for (auto syntax: SyntaxTree::self()->syntax()) { | 102 | for (auto syntax: SyntaxTree::self()->syntax()) { |
103 | if (fragment.isEmpty() || syntax.keyword.startsWith(fragment)) { | 103 | if (syntax.keyword != QObject::tr("help") && |
104 | (fragment.isEmpty() || syntax.keyword.startsWith(fragment))) { | ||
104 | items << syntax.keyword; | 105 | items << syntax.keyword; |
105 | } | 106 | } |
106 | } | 107 | } |