bugfix: position cursor up top when loading file

This commit is contained in:
Kartik K. Agaram 2022-05-18 18:18:34 -07:00
parent f91e520124
commit b586c7332e
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ function love.load(arg)
for i,line in ipairs(Lines) do
if line.mode == 'text' then
Cursor_line = i
break
end
end
love.window.setTitle('Text with Lines - '..Filename)
@ -91,6 +92,7 @@ function love.filedropped(file)
for i,line in ipairs(Lines) do
if line.mode == 'text' then
Cursor_line = i
break
end
end
love.window.setTitle('Text with Lines - '..Filename)