mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
runtime(dist): do not output a message if executable is not found
closes: #15705 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
fdcb08264d
commit
e6b01cfe01
1
runtime/autoload/dist/vim.vim
vendored
1
runtime/autoload/dist/vim.vim
vendored
@ -19,7 +19,6 @@ if !has('vim9script')
|
||||
function dist#vim#IsSafeExecutable(filetype, executable)
|
||||
let cwd = getcwd()
|
||||
if empty(exepath(a:executable))
|
||||
echomsg a:executable .. " not found in $PATH"
|
||||
return v:false
|
||||
endif
|
||||
return get(g:, a:filetype .. '_exec', get(g:, 'plugin_exec', 0)) &&
|
||||
|
1
runtime/autoload/dist/vim9.vim
vendored
1
runtime/autoload/dist/vim9.vim
vendored
@ -7,7 +7,6 @@ vim9script
|
||||
|
||||
export def IsSafeExecutable(filetype: string, executable: string): bool
|
||||
if empty(exepath(executable))
|
||||
echomsg executable .. " not found in $PATH"
|
||||
return v:false
|
||||
endif
|
||||
var cwd = getcwd()
|
||||
|
Loading…
x
Reference in New Issue
Block a user