1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 23:14:03 +01:00

swaybar: update buffer_pos when moving object to start of buffer

This commit is contained in:
Ian Fan 2018-09-19 15:16:19 +01:00
parent e6a52ae387
commit dbda5d35eb

@ -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;