7SPB6HJVEIJUBSADN6DN76Z42NJ46I3VMUXGRPCHJFVRRPMZ4TLAC
SQUVJKYFC2C3OTEVRIYWKSMRQFYP7RK4BUOZBDHCXIA477W4YQ2AC
M2SRPSX6TJJEEKUT6C4OEEZQNTL2FJEHDVSPLRHLNPZ7CWJQHSAAC
P3K7UH5C5FPVZOYEC46WTZAVWCC6BQBKEJ5MSIWMSIHGFJ6FTT7AC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
3VHUIIATPOF7FXB7NTL5MESCV5BCQACII2D7QZ4UIUCBX3CWXMMAC
ZJOSQFN6CH475MQZ5EXWSWILKNC77RVFEN44KQ2Y4EQJ2BC5YFCAC
LF7BWEG4DKQI7NMXMZC4LC2BE5PB42HK5PD6OYBNIDMAZBJASOKQC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
LLQC2M2IMEJBJQXZTKC3OAKG5WKHSERXKAKCYHQRUZZD6CVRIHAQC
3PSFWAILGRA4OYXWS2DX7VF332AIBPYBXHEA4GIQY2XEJVD65UMAC
FXI74QCLOZ4BS7UVZ3U2PE3LOL7MX3FWGHZCTGH3DYFXGTXVVIRAC
filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows
next_save = nil,
local os_path_separator = package.config:sub(1,1)
if filename:sub(1,1) ~= os_path_separator then
filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
end
--? print('saving source settings', Settings.source.x, Settings.source.y, Settings.source.displayindex)
return {
x=Settings.source.x, y=Settings.source.y, displayindex=Settings.source.displayindex,
width=App.screen.width, height=App.screen.height,
font_height=Editor_state.font_height,
filename=filename,
screen_top=Editor_state.screen_top1, cursor=Editor_state.cursor1,
show_log_browser_side=Show_log_browser_side,
focus=Focus,
}
end
function source.mouse_pressed(x,y, mouse_button)
Cursor_time = 0 -- ensure cursor is visible immediately after it moves
--? print('mouse click', x, y)
--? print(Editor_state.left, Editor_state.right)
--? print(Log_browser_state.left, Log_browser_state.right)
local os_path_separator = package.config:sub(1,1)
if filename:sub(1,1) ~= os_path_separator then
filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
end
return {
if filename:sub(1,1) ~= '/' then
filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
local os_path_separator = package.config:sub(1,1)
if filename:sub(1,1) ~= os_path_separator then
filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename