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

closes: #19319

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Mao-Yining
2026-02-03 14:51:24 +00:00
committed by Christian Brabandt
parent ac5af8ecd3
commit a2e76bb8fe
+2 -2
View File
@@ -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 <Bram@vim.org>
" 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>)