aboutsummaryrefslogtreecommitdiff
path: root/plugins/autosave.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autosave.lua')
-rw-r--r--plugins/autosave.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autosave.lua b/plugins/autosave.lua
index 4c39612..51786a1 100644
--- a/plugins/autosave.lua
+++ b/plugins/autosave.lua
@@ -38,7 +38,7 @@ end
function Doc:on_text_change(type)
-- check if file is saved
- if core.active_view:get_name() ~= "unsaved*" then
+ if self.filename then
updatepress()
end
return on_text_change(type)