From a9de8a65963e431e87cb88f6872a97cc88b94167 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 24 Feb 2012 18:27:39 -0500 Subject: [PATCH] Verbosity - Tweak to 'affected' token. Needs more. --- src/commands/CmdCustom.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 0b99e9ec1..d0d4aac49 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -158,14 +158,18 @@ int CmdCustom::execute (std::string& output) out << optionalBlankLine () << view.render (filtered, sequence) - << optionalBlankLine () - << (filtered.size () == 1 - ? STRING_CMD_CUSTOM_COUNT - : format (STRING_CMD_CUSTOM_COUNTN, filtered.size ())); + << optionalBlankLine (); + if (context.verbose ("affected")) + out << (filtered.size () == 1 + ? STRING_CMD_CUSTOM_COUNT + : format (STRING_CMD_CUSTOM_COUNTN, filtered.size ())); + + // TODO Conditional if (maxrows && maxrows < (int)filtered.size ()) out << ", " << format (STRING_CMD_CUSTOM_SHOWN, maxrows); + // TODO Conditional if (maxlines && maxlines < (int)filtered.size ()) out << ", " << format (STRING_CMD_CUSTOM_TRUNCATED, maxlines - table_header);