This reverts commit 5bbd3a0a91.
This commit is contained in:
@@ -9,7 +9,7 @@ local M = {
|
||||
}
|
||||
|
||||
function M.fn(node)
|
||||
if #M.config.system_open.cmd == 0 then
|
||||
if not M.config.system_open.cmd then
|
||||
require("nvim-tree.utils").warn "Cannot open file with system application. Unrecognized platform."
|
||||
return
|
||||
end
|
||||
@@ -53,7 +53,7 @@ end
|
||||
function M.setup(opts)
|
||||
M.config.system_open = opts or {}
|
||||
|
||||
if #M.config.system_open.cmd == 0 then
|
||||
if not M.config.system_open.cmd then
|
||||
if M.config.is_windows then
|
||||
M.config.system_open = {
|
||||
cmd = "cmd",
|
||||
|
||||
Reference in New Issue
Block a user