From d386081c4c9645080265ff47bb860dbb20d6e20d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 20 Feb 2012 01:23:34 -0500 Subject: [PATCH] Bug - Modified format 'uuid.short' to show the leftmost 8 characters from a UUID, which is the same as partial UUID matching implemented in #891. --- src/columns/ColUUID.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/columns/ColUUID.cpp b/src/columns/ColUUID.cpp index 44f706c40..3b4e3cd1a 100644 --- a/src/columns/ColUUID.cpp +++ b/src/columns/ColUUID.cpp @@ -48,7 +48,7 @@ ColumnUUID::ColumnUUID () _styles.push_back ("short"); _examples.push_back ("f30cb9c3-3fc0-483f-bfb2-3bf134f00694"); - _examples.push_back ("34f00694"); + _examples.push_back ("f30cb9c3"); } //////////////////////////////////////////////////////////////////////////////// @@ -80,13 +80,13 @@ void ColumnUUID::render ( Color& color) { // f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default - // 34f00694 short + // f30cb9c3 short if (_style == "default" || _style == "long") lines.push_back (color.colorize (leftJustify (task.get (_name), width))); else if (_style == "short") - lines.push_back (color.colorize (leftJustify (task.get (_name).substr (28), width))); + lines.push_back (color.colorize (leftJustify (task.get (_name).substr (0, 8), width))); } ////////////////////////////////////////////////////////////////////////////////