TRNWIQN6RPLDLYWULLKG5L255E7E3DPNGLCSLAF6IJWYQRCCLARQC 2POFQQLW42ZQCF7NBTIFLYKXBYT5PVSC3T5UOURIEPYNFVBN2MKAC XNFTJHC4QSHNSIWNN7K6QZEZ37GTQYKHS4EPNSVPQCUSWREROGIQC PR4KIAZDOBQMEUOV2G7ZEZUW3E4L5ZCHYSS7PTYWGXPSNVRAGHCAC BULPIBEGL7TMK6CVIE7IS7WGAHGOSUJBGJSFQK542MOWGHP2ADQQC SVJZZDC3K6AKAXHGRNAZKRE2ZXEKJANNLG7LSSUZJARFBL5F7C4AC 242L3OQXTU2TCAINRJXQEEDSXQXM7Y7USUPBK37ZNM3A7V5TUDSAC DXT4QTAH5G6J7ZB3SMOOXVECKWYUPZVE2ODMUFTPPNHLTOSZLQSAC local y = Screen_height - math.floor(15*Zoom) -- for Cursor_line
local cursor_pos_screen_lines = Text.pos_at_start_of_cursor_screen_line()print('cursor pos '..tostring(Cursor_pos)..' is on the #'..tostring(cursor_pos_screen_lines)..' screen line down')local y = Screen_height - cursor_pos_screen_lines*math.floor(15*Zoom)-- duplicate some logic from love.draw
y = y - math.floor(15*Zoom)if Lines[Screen_top_line].mode == 'drawing' theny = y - Drawing.pixels(Lines[Screen_top_line].h)
print('y', y)local h = 0if Lines[Screen_top_line-1].mode == 'drawing' thenh = 20 + Drawing.pixels(Lines[Screen_top_line-1].h)elseif Lines[Screen_top_line-1].screen_line_starting_pos == nil thenh = h + math.floor(15*Zoom) -- text heightelselocal n = #Lines[Screen_top_line-1].screen_line_starting_posh = h + n*math.floor(15*Zoom) -- text heightendprint('height:', h)if y - h < 0 thenbreak