~akkartik/luaML.love

5076fec290a271935210b5fceef37146a6bfcf69 — Kartik K. Agaram a month ago 91b9a02 + ed180ea
Merge template-live-editor
1 files changed, 0 insertions(+), 2 deletions(-)

M edit.lua
M edit.lua => edit.lua +0 -2
@@ 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)