mirror of
https://github.com/vim/vim.git
synced 2025-08-27 20:13:38 -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)
|
function dist#vim#IsSafeExecutable(filetype, executable)
|
||||||
let cwd = getcwd()
|
let cwd = getcwd()
|
||||||
if empty(exepath(a:executable))
|
if empty(exepath(a:executable))
|
||||||
echomsg a:executable .. " not found in $PATH"
|
|
||||||
return v:false
|
return v:false
|
||||||
endif
|
endif
|
||||||
return get(g:, a:filetype .. '_exec', get(g:, 'plugin_exec', 0)) &&
|
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
|
export def IsSafeExecutable(filetype: string, executable: string): bool
|
||||||
if empty(exepath(executable))
|
if empty(exepath(executable))
|
||||||
echomsg executable .. " not found in $PATH"
|
|
||||||
return v:false
|
return v:false
|
||||||
endif
|
endif
|
||||||
var cwd = getcwd()
|
var cwd = getcwd()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user