Fix `treeview:open-in-system` command on Windows

The first argument is the title for the `CMD` window.
This commit is contained in:
Guldoman 2021-09-07 22:14:40 +02:00 committed by Francesco
parent 444c929e3c
commit 474952645c
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ command.add(function() return view.hovered_item ~= nil end, {
local hovered_item = view.hovered_item local hovered_item = view.hovered_item
if PLATFORM == "Windows" then if PLATFORM == "Windows" then
system.exec("start " .. hovered_item.abs_filename) system.exec(string.format("start \"\" %q", hovered_item.abs_filename))
elseif string.find(PLATFORM, "Mac") then elseif string.find(PLATFORM, "Mac") then
system.exec(string.format("open %q", hovered_item.abs_filename)) system.exec(string.format("open %q", hovered_item.abs_filename))
elseif PLATFORM == "Linux" then elseif PLATFORM == "Linux" then