about summary refs log tree commit diff stats
path: root/source.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-03-17 22:29:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-03-17 22:30:46 -0700
commiteca407cf00072a61660045cf08def0350058f572 (patch)
treea8d3f4ae2489e04aed3eba3b6d721642f6b43abd /source.lua
parent4dbc097f835218bc44dd1d96134294a0bc5ce725 (diff)
parent6709b394fba8dbc8cdfaaf3a9461e79ce7b0c2e0 (diff)
downloadtext.love-eca407cf00072a61660045cf08def0350058f572.tar.gz
Merge lines.love
Diffstat (limited to 'source.lua')
-rw-r--r--source.lua14
1 files changed, 1 insertions, 13 deletions
diff --git a/source.lua b/source.lua
index 3ac51d5..da168f4 100644
--- a/source.lua
+++ b/source.lua
@@ -75,7 +75,7 @@ function source.initialize()
   love.window.setTitle('text.love - source')
 end
 
--- environment for a mutable file of bifolded text
+-- environment for a mutable file
 -- TODO: some initialization is also happening in load_settings/initialize_default_settings. Clean that up.
 function source.initialize_edit_side()
   load_from_disk(Editor_state)
@@ -89,17 +89,12 @@ function source.initialize_edit_side()
   end
   edit.check_locs(Editor_state)
 
-  -- We currently start out with side B collapsed.
-  -- Other options:
-  --  * save all expanded state by line
-  --  * expand all if any location is in side B
   if Editor_state.cursor1.line > #Editor_state.lines then
     Editor_state.cursor1 = {line=1, pos=1}
   end
   if Editor_state.screen_top1.line > #Editor_state.lines then
     Editor_state.screen_top1 = {line=1, pos=1}
   end
-  edit.eradicate_locations_after_the_fold(Editor_state)
 
   if rawget(_G, 'jit') then
     jit.off()
@@ -253,13 +248,6 @@ end
 function source.quit()
   edit.quit(Editor_state)
   log_browser.quit(Log_browser_state)
-  -- convert any bifold files here
-end
-
-function source.convert_bifold_text(infilename, outfilename)
-  local contents = love.filesystem.read(infilename)
-  contents = contents:gsub('\u{1e}', ';')
-  love.filesystem.write(outfilename, contents)
 end
 
 function source.settings()