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 local screen_bottom1 = Text.screen_bottom1(editor) if 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 screen_bottom1.pos >= start[#start] then break end end end end