diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/autosave.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/autosave.lua b/plugins/autosave.lua index b63a6f6..03d7c58 100644 --- a/plugins/autosave.lua +++ b/plugins/autosave.lua @@ -63,7 +63,10 @@ end function Doc:on_text_change(type) -- check if file is saved - if config.plugins.autosave.enabled and self.filename then + if config.plugins.autosave.enabled and self.filename + and self.abs_filename ~= system.absolute_path(USERDIR .. PATHSEP .. "init.lua") + and self.abs_filename ~= system.absolute_path(".lite_project.lua") + then updatepress() end return on_text_change(self, type) |