driver.love/0015-line_height

5 lines
199 B
Plaintext

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