broadsheet.love/0015-on.draw

13 lines
451 B
Plaintext

on.draw = function()
for i,editor in ipairs(Editors) do
edit.draw(editor, Text_color, --[[hide cursor]] true)
-- skip remaining editors if we're already at the bottom
if editor.screen_bottom1.line == #editor.lines then
Text.populate_screen_line_starting_pos(editor, #editor.lines)
local start = editor.line_cache[#editor.lines].screen_line_starting_pos
if editor.screen_bottom1.pos >= start[#start] then
break
end
end
end
end