aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Lind Madsen <erlendf80@gmail.com>2021-10-04 13:28:02 +0200
committerErlend Lind Madsen <erlendf80@gmail.com>2021-10-04 13:28:02 +0200
commit08a01cb00f62b8c0761a0fde7c3781e05f9bef65 (patch)
treed83c92245ee2a0f1da3596b0a71426976f165238
parent2b24123e83810e6e34c65a308f983e1a4c1c0380 (diff)
downloadvis-cursors-08a01cb00f62b8c0761a0fde7c3781e05f9bef65.tar.gz
better explain folder compress
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index b5731d0..1ef4618 100644
--- a/init.lua
+++ b/init.lua
@@ -40,7 +40,7 @@ local read_cursors = function()
local prev_dir
for line in f:lines() do
for path, pos in string.gmatch(line, '(.+)[,%s](%d+)') do
- -- append prev dir if '@' (compressed)
+ -- uncompress prev dir if '@'
local repeat_dir = string.match(path, '^%@')
if repeat_dir then
local filename = string.match(path, '^.*/(.*)')
@@ -76,7 +76,7 @@ local write_cursors = function()
local prev_dir
for i, path in ipairs(paths) do
local dir = string.match(path, '(.*/)')
- -- simplify prev dirs to '@'
+ -- compress dir to just '@' if same as prev dir
if dir == prev_dir then
local filename = string.match(path, '^.*/(.*)')
table.insert(t, string.format('@/%s,%d', filename, cursors[path]))