Skip to content

Commit

Permalink
fix(util): executable checks for Util.open (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoh86 committed Feb 11, 2023
1 parent b5eb07e commit 4917222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazy/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ function M.open(uri)
elseif vim.fn.has("macunix") == 1 then
cmd = { "open", uri }
else
if vim.fn.executable("xdg-open") then
if vim.fn.executable("xdg-open") == 1 then
cmd = { "xdg-open", uri }
elseif vim.fn.executable("wslview") then
elseif vim.fn.executable("wslview") == 1 then
cmd = { "wslview", uri }
else
cmd = { "open", uri }
Expand Down

0 comments on commit 4917222

Please sign in to comment.