]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(dist): do not output a message if executable is not found
authorChristian Brabandt <cb@256bit.org>
Fri, 20 Sep 2024 20:26:56 +0000 (22:26 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Sep 2024 20:26:56 +0000 (22:26 +0200)
closes: #15705

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/vim.vim
runtime/autoload/dist/vim9.vim

index d51940653000cc9538bbbcacaa839e788e6a80b7..bb858c5732357980c9c43e6ad30b5e9b3d6f6fa9 100644 (file)
@@ -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)) &&
index 8fa9380f5774f53838ced5266c6561f73a6bdad5..2277f245330cae1fa893660948afada516899f9d 100644 (file)
@@ -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()