summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index f5bc2eeb19..1567a6ea91 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1187,6 +1187,9 @@ ssize_t bufcuttail(int handle_id, size_t size)
h->available -= size;
h->filesize -= size;
h->widx = RINGBUF_SUB(h->widx, size);
+ if (h == cur_handle) {
+ buf_widx = h->widx;
+ }
return size;
}