@@ 102,7 102,6 @@ function edit.invalid_cursor1(State)
return cursor1.pos > #State.lines[cursor1.line].data + 1
end
--- return y drawn until
function edit.draw(State, fg, hide_cursor)
love.graphics.setFont(State.font)
assert(#State.lines == #State.line_cache, ('line_cache is out of date; %d elements when it should be %d'):format(#State.line_cache, #State.lines))
@@ 125,7 124,6 @@ function edit.draw(State, fg, hide_cursor)
if State.search_term then
Text.draw_search_bar(State, hide_cursor)
end
- return y
end
function edit.update(State, dt)