Skip to content

Commit 4917222

Browse files
authored
fix(util): executable checks for Util.open (#528)
1 parent b5eb07e commit 4917222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lazy/util.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ function M.open(uri)
2323
elseif vim.fn.has("macunix") == 1 then
2424
cmd = { "open", uri }
2525
else
26-
if vim.fn.executable("xdg-open") then
26+
if vim.fn.executable("xdg-open") == 1 then
2727
cmd = { "xdg-open", uri }
28-
elseif vim.fn.executable("wslview") then
28+
elseif vim.fn.executable("wslview") == 1 then
2929
cmd = { "wslview", uri }
3030
else
3131
cmd = { "open", uri }

0 commit comments

Comments
 (0)