aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Lind Madsen <erlendf80@gmail.com>2022-01-24 01:54:58 +0100
committerErlend Lind Madsen <erlendf80@gmail.com>2022-01-24 01:54:58 +0100
commitc7d07c6de2e2e003d903fc4c2b561cb7b2976e03 (patch)
treef0f11988213ec79564d5dc22f7388da4c7364f41
parent3055ec7a94b82fa358c87b865258b3acf88314af (diff)
downloadvis-cursors-c7d07c6de2e2e003d903fc4c2b561cb7b2976e03.tar.gz
...
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index f384ce5..5797a8d 100644
--- a/init.lua
+++ b/init.lua
@@ -2,6 +2,9 @@ local M = {}
local cursors = {}
local files = {}
+-- default maxsize
+M.maxsize = 1000
+
-- get the default system cache directory
local get_default_cache_path = function()
local HOME = os.getenv('HOME')
@@ -13,9 +16,6 @@ end
-- default save path
M.path = get_default_cache_path()
--- default maxsize
-M.maxsize = 1000
-
function read_files()
-- read file
@@ -83,7 +83,7 @@ local on_win_close = function(win)
-- insert current path to top of files
table.insert(files, 1, win.file.path)
- -- set cursor pos for current file path
+ -- set cursor pos for current file path
cursors[win.file.path] = win.selection.pos
end