diff options
| author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-09-07 05:21:45 -0700 |
|---|---|---|
| committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-09-07 05:21:45 -0700 |
| commit | 28e8a98ffc27d0f0c7342e5250ea19ba02d575ee (patch) | |
| tree | 7bd77afc59bb45455034d79cbe6ce4354ed7210b | |
| parent | 368ffca40ab2746f7eb4896bbfa63a428e8cce1f (diff) | |
| download | lite-xl-fix-2.0.1.tar.gz lite-xl-fix-2.0.1.zip | |
Fix error in change-project-folder commandfix-2.0.1
| -rw-r--r-- | data/core/commands/core.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/core/commands/core.lua b/data/core/commands/core.lua index 7ac36976..215ff654 100644 --- a/data/core/commands/core.lua +++ b/data/core/commands/core.lua @@ -148,7 +148,9 @@ command.add(nil, { ["core:change-project-folder"] = function() local dirname = common.dirname(core.project_dir) - core.command_view:set_text(common.home_encode(dirname) .. PATHSEP) + if dirname then + core.command_view:set_text(common.home_encode(dirname) .. PATHSEP) + end core.command_view:enter("Change Project Folder", function(text, item) text = system.absolute_path(common.home_expand(item and item.text or text)) if text == core.project_dir then return end |
