line_height = function(editor, line_index) local line = editor.lines[line_index] local line_cache = editor.line_cache[line_index] return editor.line_height*#line_cache.screen_line_starting_pos end