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THP473OP7XBTTMSZHIQID5AC
7M7LS7I2QT6AFZ6RVK5KK2CZ6SNJAMQIWD7MX34F7MQ3MZKH72GAC
S7ZZA3YEKYGLBN6UC2N7WGUS43L6MX2KQQ2LBUZT4FQ7K7V5IQGQC
DWZK32YDFQIUYR4LDUUFLOPJMUVJMFDP2RKW2L3QFAGUHAWPJU2AC
VHQCNMARPMNBSIUFLJG7HVK4QGDNPCGNVFLHS3I4IGNVSV5MRLYQC
4CTZOJPCTWYUSHLIZZJ2M5W7S4JZFZVT5MUU5XNSOIBS5L4UY5UQC
check_eq(#Editor_state.lines, 3, 'F - test_drop_file/#lines')
check_eq(Editor_state.lines[1].data, 'abc', 'F - test_drop_file/lines:1')
check_eq(Editor_state.lines[2].data, 'def', 'F - test_drop_file/lines:2')
check_eq(Editor_state.lines[3].data, 'ghi', 'F - test_drop_file/lines:3')
App.screen.init{width=Editor_state.left+300, height=300}
Editor_state.lines = load_array{'abc', 'def'}
Editor_state.filename = 'foo'
schedule_save(Editor_state)
App.screen.init{width=Editor_state.left+300, height=300}
Filename = Directory..os.date('/%Y/%m/%d/%H-%M-%S')
os.execute('mkdir -p '..dirname(Filename))
assert(not file_exists(Filename))
Editor_state.filename = arg[1]
Editor_state.lines = load_from_disk(Editor_state.filename)
Editor_state.screen_top1 = {line=1, pos=1}
Editor_state.cursor1 = {line=1, pos=1}
for i,line in ipairs(Editor_state.lines) do
Editor_state.cursor1.line = i
Editor_state.lines = load_from_disk(Editor_state.filename)
if Editor_state.cursor1.line > #Editor_state.lines or Editor_state.lines[Editor_state.cursor1.line].mode ~= 'text' then
for i,line in ipairs(Editor_state.lines) do
Editor_state.cursor1.line = i
love.window.setTitle('lines.love - '..Editor_state.filename)
Editor_state.filename = Editor_state.directory..os.date('/%Y/%m/%d/%H-%M-%S')
os.execute('mkdir -p '..dirname(Editor_state.filename))
assert(not file_exists(Editor_state.filename))
if Editor_state.next_save then
save_to_disk(Editor_state.lines, Editor_state.filename)
Editor_state.filename = file:getFilename()
Editor_state.lines = load_from_file(file)
for i,line in ipairs(Editor_state.lines) do
Editor_state.cursor1.line = i
love.window.setTitle('Text with Editor_state.lines - '..Editor_state.filename)