From 8ed1206f41cc00b6f1509a6a30e7c71b6c091e93 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Jun 2014 15:20:56 -0400 Subject: [PATCH] Parser - ::findCommand removes unnecessarily lexed sub-branches. --- src/Parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Parser.cpp b/src/Parser.cpp index 8848180bc..6ffd2ee9c 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -334,6 +334,7 @@ void Parser::findCommand () if (canonicalize (command, "cmd", (*i)->attribute ("raw"))) { (*i)->unTag ("?"); + (*i)->removeAllBranches (); (*i)->tag ("CMD"); (*i)->attribute ("canonical", command);