diff --git a/src/Parser.cpp b/src/Parser.cpp index 8ace3463c..6b64cb95e 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -313,6 +313,7 @@ void Parser::findCommand () else if (exactMatch ("readcmd", command)) (*i)->tag ("READCMD"); else if (exactMatch ("helper", command)) (*i)->tag ("HELPER"); + // Stop at the first command found. return; } } @@ -468,7 +469,7 @@ void Parser::injectDefaults () // because captureFirst inserts args immediately after the command, and // so has the effect of reversing the list. std::vector args; - Lexer::word_split (args, defaultCommand); + Lexer::token_split (args, defaultCommand); std::vector ::reverse_iterator r; for (r = args.rbegin (); r != args.rend (); ++r) {