In the process, a bugfix: up/down from line to drawing or vice versa.
2INHXC3KRJVZTX2BQ63ZQLHIC5SWPUG4PQKCMLC7SQKN5R7LJZ6QC 3D5RFWHVIHCJGN7HLEP5ZMC6WNIG7GXISJRJXOA4K5MBJFJYPIIQC ZUOL7X6VIPRCMEZURYGNHTDEIP3ZCHZW4PKVKBNXVZL5V4VOE5ZQC 3CS5KKCIZQ6J4SBILINYZSOM6V3U2LE7YIXOZVKXXNBROF6Z6JWAC VVXVV2D2F5Y6D6N5VVPUPK3N6GMDTG2YCYPQDYTYEKVKBYHRRYEAC OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC RJGZD4INLQ3IAWLCBYBZQDMP4ICSMZWJX2TRYODDYVUNMGPL6GYAC love.graphics.print('_', 25+cursor_x(line.data, cursor_pos)*1.5, y+6) -- drop the cursor down a bit to account for the increased font size
love.graphics.print('_', cursor_x(line.data, cursor_pos), y+6) -- drop the cursor down a bit to account for the increased font size
for i,drawing in ipairs(lines) doif drawing.mode == 'drawing' then
for i,line in ipairs(lines) doif line.mode == 'text' then-- move cursorif x >= 16 and y >= line.y and y < y+25 thencursor_line = icursor_pos = nearest_cursor_pos(line.data, x, 1)endelseif line.mode == 'drawing' thenlocal drawing = line