From 6eec6350be796c6bb42e545b5aa86e75d9694992 Mon Sep 17 00:00:00 2001 From: "henry.potgieter" Date: Thu, 30 Mar 2023 23:24:11 -0400 Subject: [PATCH] Condense lines --- common/powerline.cc | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/common/powerline.cc b/common/powerline.cc index 537b634..b88afe2 100644 --- a/common/powerline.cc +++ b/common/powerline.cc @@ -77,38 +77,24 @@ void powerline_char( std::ostringstream & oss, const char dynamic_color[], case POWERLINE_LEFT: if ( eol ) { - oss << bg2fg( dynamic_color ) - << "#[bg=colour" - << write_color - << "]"; + oss << bg2fg( dynamic_color ) << "#[bg=colour" << write_color << "]"; } else { - oss << dynamic_color - << "#[fg=colour" - << write_color - << "]"; + oss << dynamic_color << "#[fg=colour" << write_color << "]"; } - oss << PWL_LEFT_FILLED - << dynamic_color; + oss << PWL_LEFT_FILLED << dynamic_color; break; case POWERLINE_RIGHT: if ( eol ) { - oss << dynamic_color - << "#[fg=colour" - << write_color - << "] "; + oss << dynamic_color << "#[fg=colour" << write_color << "] "; } else { - oss << bg2fg(dynamic_color) - << " #[bg=colour" - << write_color - << "]"; + oss << bg2fg(dynamic_color) << " #[bg=colour" << write_color << "]"; } - oss << PWL_RIGHT_FILLED - << dynamic_color; + oss << PWL_RIGHT_FILLED << dynamic_color; break; } }