Merge lines.love

This commit is contained in:
Kartik K. Agaram 2023-03-25 17:23:57 -07:00
commit cf4451dc1b
2 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ Alternatively, turn it into a .love file you can double-click on:
$ zip -r /tmp/text.love *.lua
```
By default, it reads/writes the file `lines.txt` in your default
user/home directory (`https://love2d.org/wiki/love.filesystem.getUserDirectory`).
By default, it reads/writes the file `lines.txt` in a directory
specific to this app (https://love2d.org/wiki/love.filesystem.getSourceBaseDirectory).
To open a different file, drop it on the app window.

View File

@ -95,7 +95,7 @@ function edit.initialize_state(top, left, right, font_height, line_height) -- c
right = math.floor(right),
width = right-left,
filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows
filename = love.filesystem.getSourceBaseDirectory()..'/lines.txt', -- '/' should work even on Windows
next_save = nil,
-- undo