diff options
author | Horacio Sanson <horacio@allm.inc> | 2021-01-19 18:03:04 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.inc> | 2021-01-23 01:34:13 +0900 |
commit | 53ff5f2d88aeb74ca6a506e11869350312cd6588 (patch) | |
tree | 8c1e5a48559b35f0177a5eacd1264b2e0447afd6 /autoload | |
parent | 9a1e91e075abf386e8c6fd620ec0835e566a7db1 (diff) | |
download | ale-53ff5f2d88aeb74ca6a506e11869350312cd6588.zip |
Fix 3546 - check empty executable string.
At some point VIM/NVIM started throwing errors if the input string is
empty for some functions such as execute() and fnamemodify(). This
commit checks if the executable string is empty before passing it to the
executable() function.
Resources:
- https://github.com/vim/vim/issues/7465
- https://github.com/vim/vim/releases/tag/v8.2.2117
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/maven.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/maven.vim b/autoload/ale/maven.vim index 745f8c93..42735286 100644 --- a/autoload/ale/maven.vim +++ b/autoload/ale/maven.vim @@ -25,7 +25,7 @@ function! ale#maven#FindExecutable(buffer) abort let l:wrapper_cmd = has('unix') ? 'mvnw' : 'mvnw.cmd' let l:wrapper_path = ale#path#FindNearestFile(a:buffer, l:wrapper_cmd) - if executable(l:wrapper_path) + if !empty(l:wrapper_path) && executable(l:wrapper_path) return l:wrapper_path endif |