aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--swaybar/i3bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c
index 4ea9c4c1..02b68a2a 100644
--- a/swaybar/i3bar.c
+++ b/swaybar/i3bar.c
@@ -199,6 +199,7 @@ bool i3bar_handle_readable(struct status_line *status) {
199 } 199 }
200 buffer_pos = status->buffer_index = 0; 200 buffer_pos = status->buffer_index = 0;
201 } else if (json_tokener_get_error(status->tokener) == json_tokener_continue) { 201 } else if (json_tokener_get_error(status->tokener) == json_tokener_continue) {
202 json_tokener_reset(status->tokener);
202 if (status->buffer_index < status->buffer_size) { 203 if (status->buffer_index < status->buffer_size) {
203 // move the object to the start of the buffer 204 // move the object to the start of the buffer
204 status->buffer_index -= buffer_pos; 205 status->buffer_index -= buffer_pos;