diff options
author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-04-21 13:37:22 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-04-21 13:37:22 +0200 |
commit | 787f31d3eb85541726e066472e1fd20c44939393 (patch) | |
tree | 2de7f6076577e18b5bb01ad7539bf4a8993cada6 /plugins/lastproject.lua | |
parent | b09046a719cafa8f75c542123828cd76be460a2a (diff) | |
parent | 2fefdae0bb729edb29c6b90e89d34a9e664fbf14 (diff) | |
download | lite-xl-plugins-787f31d3eb85541726e066472e1fd20c44939393.tar.gz lite-xl-plugins-787f31d3eb85541726e066472e1fd20c44939393.zip |
Merge branch 'lite-xl-1.16'
Diffstat (limited to 'plugins/lastproject.lua')
-rw-r--r-- | plugins/lastproject.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/plugins/lastproject.lua b/plugins/lastproject.lua deleted file mode 100644 index 5fb23bd..0000000 --- a/plugins/lastproject.lua +++ /dev/null @@ -1,29 +0,0 @@ -local core = require "core" - -local last_project_filename = EXEDIR .. PATHSEP .. ".lite_last_project" - - --- load last project path -local fp = io.open(last_project_filename) -local project_path -if fp then - project_path = fp:read("*a") - fp:close() -end - - --- save current project path -local fp = io.open(last_project_filename, "w") -if nil ~= fp then - fp:write(system.absolute_path ".") - fp:close() -end - - --- restart using last project path if we had no commandline arguments and could --- find a last-project file -if #ARGS == 1 and project_path then - system.exec(string.format("%s %q", EXEFILE, project_path)) - core.quit(true) -end - |