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 Abbate
parent 2b277bb502
commit 0a36e66aba
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
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
system.exec(string.format("open %q", hovered_item.abs_filename))
elseif PLATFORM == "Linux" then