From 90424774152ee2dfe0aba55ebd1d96b4f083ab4e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 Dec 2016 14:21:48 -0500 Subject: [PATCH] CmdShow: Migrated from ViewText to Table --- src/commands/CmdShow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdShow.cpp b/src/commands/CmdShow.cpp index 296c0be66..c140c1f2e 100644 --- a/src/commands/CmdShow.cpp +++ b/src/commands/CmdShow.cpp @@ -34,7 +34,7 @@ #include #include #include -#include +#include extern Context context; @@ -258,10 +258,10 @@ int CmdShow::execute (std::string& output) default_values.push_back (i.first); // Create output view. - ViewText view; + Table view; view.width (width); - view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VAR)); - view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VALUE)); + view.add (STRING_CMD_SHOW_CONF_VAR); + view.add (STRING_CMD_SHOW_CONF_VALUE); Color error; Color warning;