aboutsummaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-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