aboutsummaryrefslogtreecommitdiff
path: root/plugins/autosave.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2021-08-17 11:26:18 -0230
committerGitHub <noreply@github.com>2021-08-17 11:26:18 -0230
commit9689846686f77dc0aa1e6f4d31fbfc42998c2085 (patch)
treeb187286f2ed78fa9317f288dc0c5144840bcdad9 /plugins/autosave.lua
parent44659ba00207cecd90412b714e53c2a1b7233fb9 (diff)
parenta42a0d57b08a9080ed9fd8fa84f1269e3847980f (diff)
downloadlite-xl-plugins-9689846686f77dc0aa1e6f4d31fbfc42998c2085.tar.gz
lite-xl-plugins-9689846686f77dc0aa1e6f4d31fbfc42998c2085.zip
Merge branch 'master' into 2.0
Diffstat (limited to 'plugins/autosave.lua')
-rw-r--r--plugins/autosave.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/autosave.lua b/plugins/autosave.lua
index e6fa21c..9518adf 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()
@@ -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