diff options
Diffstat (limited to 'run.lua')
-rw-r--r-- | run.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/run.lua b/run.lua index 2dd159e..e395978 100644 --- a/run.lua +++ b/run.lua @@ -32,15 +32,11 @@ function run.initialize(arg) Text.redraw_all(Editor_state) Editor_state.screen_top1 = {line=1, pos=1} Editor_state.cursor1 = {line=1, pos=1} - edit.fixup_cursor(Editor_state) else load_from_disk(Editor_state) Text.redraw_all(Editor_state) - if Editor_state.cursor1.line > #Editor_state.lines or Editor_state.lines[Editor_state.cursor1.line].mode ~= 'text' then - edit.fixup_cursor(Editor_state) - end end - love.window.setTitle('lines.love - '..Editor_state.filename) + love.window.setTitle('text.love - '..Editor_state.filename) if #arg > 1 then print('ignoring commandline args after '..arg[1]) @@ -116,8 +112,7 @@ function run.filedropped(file) Editor_state.lines = load_from_file(file) file:close() Text.redraw_all(Editor_state) - edit.fixup_cursor(Editor_state) - love.window.setTitle('lines.love - '..Editor_state.filename) + love.window.setTitle('text.love - '..Editor_state.filename) end function run.draw() |