about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-03-25 17:19:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-03-25 17:19:28 -0700
commitda932ce92dcf5930d3224c2179db41cf024f5169 (patch)
tree032051a84dacf7ed5361ef983fda6818e78a8bb6
parentafadb4db66b029869aa7184b9e35fe73a4344cba (diff)
downloadtext.love-da932ce92dcf5930d3224c2179db41cf024f5169.tar.gz
update stale information
-rw-r--r--README.md4
-rw-r--r--source_edit.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5167cd1..13b6e76 100644
--- a/README.md
+++ b/README.md
@@ -20,8 +20,8 @@ Alternatively, turn it into a .love file you can double-click on:
 $ zip -r /tmp/lines.love *.lua
 ```
 
-By default, lines.love reads/writes the file `lines.txt` in your default
-user/home directory (`https://love2d.org/wiki/love.filesystem.getUserDirectory`).
+By default, lines.love 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 lines.love window.
 
diff --git a/source_edit.lua b/source_edit.lua
index b70aab1..606b913 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -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