From 44fb24dee67ef9970174fed24e853e75169b45d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Wed, 9 Jan 2013 14:29:01 +0100 Subject: [PATCH] Fix padding issue with single-sided statuslines --- powerline/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/renderer.py b/powerline/renderer.py index 0dc062a7..770a85b1 100644 --- a/powerline/renderer.py +++ b/powerline/renderer.py @@ -89,7 +89,7 @@ class Renderer(object): compare_segment = next_segment if segment['side'] == 'left' else prev_segment segment['rendered_raw'] = u'' - outer_padding = ' ' if index == 0 or index == segments_len - 1 else '' + outer_padding = ' ' if index == 0 or (index == segments_len - 1 and segment['side'] == 'right') else '' divider_type = 'soft' if compare_segment['highlight'][mode]['bg'] == segment['highlight'][mode]['bg'] else 'hard' divider = theme.get_divider(segment['side'], divider_type)