runtime(c): only set keywordprg when there has 'man'

Commit: 
https://github.com/vim/vim/commit/a2e76bb8feaa91c5653267180f139cba1bfeec9a
Author: Mao-Yining <[email protected]>
Date:   Tue Feb 3 14:51:24 2026 +0000

    runtime(c): only set keywordprg when there has 'man'
    
    closes: https://github.com/vim/vim/issues/19319
    
    Signed-off-by: Mao-Yining <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/ftplugin/c.vim b/runtime/ftplugin/c.vim
index 2793c5d46..97111121c 100644
--- a/runtime/ftplugin/c.vim
+++ b/runtime/ftplugin/c.vim
@@ -1,7 +1,7 @@
 " Vim filetype plugin file
 " Language:    C
 " Maintainer:  The Vim Project <https://github.com/vim/vim>
-" Last Change: 2026 Jan 26
+" Last Change: 2026 Feb 3
 " Former Maintainer:   Bram Moolenaar <[email protected]>
 
 " Only do this when not done yet for this buffer
@@ -41,7 +41,7 @@ if has("vms")
 endif
 
 " Use terminal window for gui
-if has('gui_running') && exists(':terminal') == 2
+if has('gui_running') && exists(':terminal') == 2 && executable("man")
   setlocal keywordprg=:CKeywordPrg
 
   command! -buffer -nargs=1 -count CKeywordPrg call s:CKeywordPrg(<q-args>, 
<count>)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vnHsq-00B4sq-7X%40256bit.org.

Raspunde prin e-mail lui