RTG3J32S5SQX6KC74FFHSK2MAJCMISFUHANSDCIFQA7TGDGDORGAC endfunction update_metadata(pane)local y = 0pane.line_cache = {}for i=1,#pane.lines dolocal line = pane.lines[i]pane.line_cache[i] = {}line.start_relative_y = yif line.mode == 'text' then-- semi-permanently initialize some cached stuff until the next editText.compute_fragments(pane, i)Text.populate_screen_line_starting_pos(pane, i)y = y + Line_height*#pane.line_cache[i].screen_line_starting_poselseif line.mode == 'drawing' then-- nothingy = y + Drawing.pixels(line.h, Display_settings.column_width) + Drawing_padding_heightelseprint(line.mode)assert(false)endendpane.height = y