aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorcukmekerb <cukmekerb@gmail.com>2021-07-23 14:35:09 -0700
committercukmekerb <cukmekerb@gmail.com>2021-07-23 14:35:09 -0700
commitf4770e32fd3eda88d2a68f5fd878982a55f83419 (patch)
treef745e2738ce1458b74f6fda571eb836636a8c7c1 /plugins
parentdaca2e896af3ae18d65ad36b79c99f7d9e584d68 (diff)
downloadlite-xl-plugins-f4770e32fd3eda88d2a68f5fd878982a55f83419.tar.gz
lite-xl-plugins-f4770e32fd3eda88d2a68f5fd878982a55f83419.zip
autosave.lua: pass self and remove unused variable
Diffstat (limited to 'plugins')
-rw-r--r--plugins/autosave.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/autosave.lua b/plugins/autosave.lua
index 2759ba6..06992ea 100644
--- a/plugins/autosave.lua
+++ b/plugins/autosave.lua
@@ -2,7 +2,6 @@
local core = require "core"
local config = require "core.config"
local Doc = require "core.doc"
-local DocView = require "core.docview"
local command = require "core.command"
-- this is used to detect the wait time
local last_keypress = os.time()
@@ -21,7 +20,7 @@ local function loop_for_save()
looping = false
end
-- wait the timeout. may cause timeout to be slightly imprescise
- coroutine.yield(config.autosave_timeout)
+ coroutine.yield(config.autosave_timeout)
end
end
@@ -42,5 +41,5 @@ function Doc:on_text_change(type)
if self.filename then
updatepress()
end
- return on_text_change(type)
+ return on_text_change(self, type)
end