broadsheet.love/0017-on.file_drop

7 lines
291 B
Plaintext
Raw Normal View History

2023-01-20 22:25:15 +00:00
on.file_drop = function(dropped_file)
if dropped_file:getFilename() == Editors[1].filename then
initialize_editors(Editors[1].font_height, Editors[1].filename, Editors[1].screen_top1)
else
initialize_editors(Editors[1].font_height, dropped_file:getFilename(), {line=1, pos=1})
end
end