From 4917222c7e5c924bf7471b72a5e2d3e661530b40 Mon Sep 17 00:00:00 2001 From: kyoh86 Date: Sat, 11 Feb 2023 17:04:59 +0900 Subject: [PATCH] fix(util): executable checks for `Util.open` (#528) --- lua/lazy/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazy/util.lua b/lua/lazy/util.lua index 23e32b5..743a679 100644 --- a/lua/lazy/util.lua +++ b/lua/lazy/util.lua @@ -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 }