From 13c3205ec0f2f62720100f6052a229391ccb9b49 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 2 Aug 2016 18:41:13 -0400 Subject: [PATCH] Remove extra spaces with --powerline-right --- common/memory.cc | 1 + common/powerline.cc | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/memory.cc b/common/memory.cc index c8f466a..690de1c 100644 --- a/common/memory.cc +++ b/common/memory.cc @@ -40,6 +40,7 @@ std::string mem_string( const MemoryStatus & mem_status, if( use_powerline_right ) { powerline( oss, mem_lut[color], POWERLINE_RIGHT ); + oss << ' '; } else if( use_powerline_left ) { diff --git a/common/powerline.cc b/common/powerline.cc index 8b7037f..365a2b6 100644 --- a/common/powerline.cc +++ b/common/powerline.cc @@ -62,8 +62,7 @@ void powerline( std::ostringstream & oss, const char color[], oss << ' ' << bg2fg( color ) << PWL_RIGHT_FILLED - << color - << ' '; + << color; break; }; }