aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1b1b791..0ec7b4d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -90,9 +90,9 @@ int buf_meth_send(lua_State *L, p_buf buf) {
90 if (err != IO_DONE) { 90 if (err != IO_DONE) {
91 lua_pushnil(L); 91 lua_pushnil(L);
92 lua_pushstring(L, buf->io->error(buf->io->ctx, err)); 92 lua_pushstring(L, buf->io->error(buf->io->ctx, err));
93 lua_pushnumber(L, sent); 93 lua_pushnumber(L, sent+start-1);
94 } else { 94 } else {
95 lua_pushnumber(L, sent); 95 lua_pushnumber(L, sent+start-1);
96 lua_pushnil(L); 96 lua_pushnil(L);
97 lua_pushnil(L); 97 lua_pushnil(L);
98 } 98 }