diff --git a/src/modules/filesystem/wrap_File.cpp b/src/modules/filesystem/wrap_File.cpp index ce29765e7..4631af8bb 100644 --- a/src/modules/filesystem/wrap_File.cpp +++ b/src/modules/filesystem/wrap_File.cpp @@ -324,7 +324,7 @@ int w_File_lines_i(lua_State *L) end = reinterpret_cast(memchr(start, '\n', len)); } - if (!end && file->isEOF()) + if (!end) end = buffer+len-1; // We've found the next line, update our offset upvalue and return