aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/i3bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c
index 88404703..4ea9c4c1 100644
--- a/swaybar/i3bar.c
+++ b/swaybar/i3bar.c
@@ -204,6 +204,7 @@ bool i3bar_handle_readable(struct status_line *status) {
status->buffer_index -= buffer_pos;
memmove(status->buffer, &status->buffer[buffer_pos],
status->buffer_index);
+ buffer_pos = 0;
} else {
// expand buffer
status->buffer_size *= 2;