From 4a9a515a36cf45eea15087ac889501207f6ce6cd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 23 Aug 2015 09:45:11 -0400 Subject: [PATCH] Context: Corrected ::dispatch determination of need for CLI2::prepareFilter --- src/Context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index c89340e19..6b1cb8666 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -444,7 +444,7 @@ int Context::dispatch (std::string &out) // This is something that is only needed for write commands with no other // filter processing. - if (! c->read_only () && + if (c->accepts_modifications () && ! c->accepts_filter ()) { cli2.prepareFilter (); @@ -455,7 +455,7 @@ int Context::dispatch (std::string &out) // tree. if (config.getBoolean ("debug") && config.getInteger ("debug.parser") == 1) - debug (cli2.dump ("Parse Tree")); + debug (cli2.dump ("Parse Tree (before command-specifŃ–c processing)")); return c->execute (out); }