about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 8ca3709..a8cfc57 100644
--- a/main.lua
+++ b/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)