summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index 20d526dfe0..4e1945c549 100644
--- a/io.c
+++ b/io.c
@@ -1720,6 +1720,9 @@ fill_cbuf(rb_io_t *fptr, int ec_flags)
}
}
}
+ if (cbuf_len0 != fptr->cbuf.len)
+ return MORE_CHAR_SUSPENDED;
+
return MORE_CHAR_FINISHED;
}