diff options
author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-04-09 12:46:52 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-04-09 12:49:40 +0200 |
commit | 203e43c813f39f91a9985ef49012c930bfb4dc10 (patch) | |
tree | b1b928a4d949954b14403d8a0a0d4ca83333cc9e | |
parent | e54842961ec017bb60a3da5cf2aa746e0d29e6ca (diff) | |
download | lite-xl-plugins-203e43c813f39f91a9985ef49012c930bfb4dc10.tar.gz lite-xl-plugins-203e43c813f39f91a9985ef49012c930bfb4dc10.zip |
Use doc.filename field to decide if autosave
Related to pull request:
https://github.com/franko/lite-plugins/pull/5
Changes rebased in lite-xl-1.16 to make them visible for the next
lite-xl release.
-rw-r--r-- | plugins/autosave.lua | 2 |
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) |