From 3fce252461f14dbf4fca4b86d2bffebe49c2cdbb Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 22 Aug 2014 23:44:18 -0400 Subject: [PATCH] Parser - ::findCommand moves branch pruning out of the iterated loop. --- src/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.cpp b/src/Parser.cpp index bf7b4e540..2a1ca7f14 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -466,9 +466,9 @@ void Parser::findCommand () if (canonicalize (command, "cmd", (*i)->attribute ("raw"))) { (*i)->unTag ("?"); - (*i)->removeAllBranches (); (*i)->tag ("CMD"); (*i)->attribute ("canonical", command); + (*i)->removeAllBranches (); if (exactMatch ("writecmd", command)) (*i)->tag ("WRITECMD"); else if (exactMatch ("readcmd", command)) (*i)->tag ("READCMD");