Commit: runtime(dist): do not output a message if executable is not found

5 views
Skip to first unread message

Christian Brabandt

unread,
Sep 20, 2024, 4:30:14 PM9/20/24
to vim...@googlegroups.com
runtime(dist): do not output a message if executable is not found

Commit: https://github.com/vim/vim/commit/e6b01cfe01a2722ec55a011ae04c4c404e88f924
Author: Christian Brabandt <c...@256bit.org>
Date: Fri Sep 20 22:26:56 2024 +0200

runtime(dist): do not output a message if executable is not found

closes: https://github.com/vim/vim/issues/15705

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/vim.vim b/runtime/autoload/dist/vim.vim
index d51940653..bb858c573 100644
--- a/runtime/autoload/dist/vim.vim
+++ b/runtime/autoload/dist/vim.vim
@@ -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)) &&
diff --git a/runtime/autoload/dist/vim9.vim b/runtime/autoload/dist/vim9.vim
index 8fa9380f5..2277f2453 100644
--- a/runtime/autoload/dist/vim9.vim
+++ b/runtime/autoload/dist/vim9.vim
@@ -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()
Reply all
Reply to author
Forward
0 new messages