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 | |
| parent | go: Add package_identifier as variable (diff) | |
| download | nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.tar nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.tar.gz nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.tar.bz2 nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.tar.lz nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.tar.xz nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.tar.zst nvim-treesitter-61422235578d7d537ff9a57d75bd89131c3a5f7d.zip | |
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')
| -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 17cbb78cb..7b4875135 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) |
