bugfix: position cursor up top when loading file
This commit is contained in:
parent
f91e520124
commit
b586c7332e
2
main.lua
2
main.lua
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue