Still not ideal, because the space for the line numbers is not scaled by zoom. I'm not sure how to fix this..
O6JOCPML4QCKJ33RF2SXDHMNH4KF2FA54SQBS7QOJFIWJJPTKBNAC
U6QP5SNXVIQNNI7RPUFUKFKIEXKS6TGONITJK7QVJ4MYMOUI6VEQC
NJHPKGC4MV6DDRYI4NJEE5LQBSWJBB54QV7EPSOS2ECVI7CBPOJQC
BULPIBEGL7TMK6CVIE7IS7WGAHGOSUJBGJSFQK542MOWGHP2ADQQC
EDRTD2YKYXX7R4NCJC757JIOVGDVJBQHFC3HYDD2ONDWMPFJOJ6AC
LRDM35CEK3OHXOTB7TEFJRL7P6PQWO5ZG3F2BVA7DIDFHBPJQ7KAC
UHB4GARJI5AB5UCDCZRFSCJNXGJSLU5DYGUGX5ITYEXI7Q43Z4CAC
36Z442IVPXHZ7D2QI26YLN3TDDEMDRQ2GKBYQAD6NUHQZVCCY4VAC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
update_editor_box = function(node, preserve_screen_top_of_cursor_node)
if node.editor == nil then return end
if node.y > Viewport.y then
if not preserve_screen_top_of_cursor_node or node ~= Cursor_node then
node.editor.screen_top1.line = 1
node.editor.screen_top1.pos = 1
end
node.editor.top = vy(node.y)
else
node.editor.screen_top1, node.editor.top = schema1_of_y(node.editor, Viewport.y - node.y)
end
node.editor.left = math.floor(vx(node.x+Line_number_width))
node.editor.right = math.ceil(vx(node.x+node.w))
edit.update_font_settings(node.editor, scale(20))
Text.redraw_all(node.editor)
end
{"on.mouse_press":179,"copy_shape":396,"on.mouse_release":367,"on.update":368,"line_height":365,"on.keychord_press":391,"A":433,"Line_number_width":440,"Page":444,"scale":7,"on.text_input":388,"compute_layout":385,"parent":445,"y_of_schema1":364,"box_height":345,"font":353,"Surface":422,"Cursor_node":172,"on.code_change":306,"on.draw":443,"B":379,"vx":5,"on.initialize":350,"Viewport":439,"schema1_of_y":366,"add_thick_line":400,"vy":8,"initialize_editor":338,"update_editor_box":446,"to_text":180,"on":1}
update_editor_box = function(node, preserve_screen_top_of_cursor_node)
if node.editor == nil then return end
if node.y > Viewport.y then
if not preserve_screen_top_of_cursor_node or node ~= Cursor_node then
node.editor.screen_top1.line = 1
node.editor.screen_top1.pos = 1
end
node.editor.top = vy(node.y)
else
node.editor.screen_top1, node.editor.top = schema1_of_y(node.editor, Viewport.y - node.y)
end
node.editor.left = math.floor(vx(node.x))
node.editor.right = math.ceil(vx(node.x+node.w))
edit.update_font_settings(node.editor, scale(20))
Text.redraw_all(node.editor)
end
{"line_height":365,"parent":444,"scale":7,"on":1,"Surface":422,"on.initialize":350,"on.draw":443,"B":379,"vx":5,"y_of_schema1":364,"Viewport":439,"copy_shape":396,"add_thick_line":400,"vy":8,"initialize_editor":338,"to_text":180,"update_editor_box":445,"on.code_change":306,"on.mouse_press":179,"font":353,"on.mouse_release":367,"Cursor_node":172,"on.update":368,"box_height":345,"on.keychord_press":391,"schema1_of_y":366,"compute_layout":385,"on.text_input":388,"Page":444,"Line_number_width":440,"A":433}