mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Add fix for vim.fn.executable(vim.NIL)
This might be a hard error in future:
https://github.com/neovim/neovim/issues/13485
7bb4e74c38
This commit is contained in:
parent
9279ff5065
commit
6142223557
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ function M.select_rm_file_cmd(file, info_msg)
|
|||
end
|
||||
|
||||
function M.select_executable(executables)
|
||||
return vim.tbl_filter(function(c) return fn.executable(c) == 1 end, executables)[1]
|
||||
return vim.tbl_filter(function(c) return c ~= vim.NIL and fn.executable(c) == 1 end, executables)[1]
|
||||
end
|
||||
|
||||
function M.select_compiler_args(repo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue