diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-12-12 10:30:15 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2020-12-12 15:25:27 +0100 |
| commit | 61422235578d7d537ff9a57d75bd89131c3a5f7d (patch) | |
| tree | 04638f669b8f39eb93094fc0df3ed4d593850924 /lua/nvim-treesitter | |
| parent | 9279ff5065e6ad7b07b28919001060eb6f2c50c8 (diff) | |
Add fix for vim.fn.executable(vim.NIL)
This might be a hard error in future:
https://github.com/neovim/neovim/issues/13485
https://github.com/vim/vim/commit/7bb4e74c38642682cfdd0cb4052adfa5efdd7dd1
Diffstat (limited to 'lua/nvim-treesitter')
| -rw-r--r-- | lua/nvim-treesitter/shell_command_selectors.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua index 17cbb78c..7b487513 100644 --- a/lua/nvim-treesitter/shell_command_selectors.lua +++ b/lua/nvim-treesitter/shell_command_selectors.lua @@ -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) |
