Commit 4a7b926
authored
Fix executable check in
The previous implementation of `utils.open` did not properly check if the necessary executables were present. In Lua, 0 is treated as true, so it always tried to run `xdg-open` even when the executable was not found, preventing the proper command from being executed. This commit updates the check to correctly use the return values of `vim.fn.executable` and `vim.fn.has` functions.utils.open (#577)1 parent d9e48c4 commit 4a7b926
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments