# HG changeset patch # User Ludovic Chabant # Date 1496931007 25200 # Node ID a1cf97b8f48f24aece0957ef156731b1df7208a1 # Parent 685b81826b68135f00bb8d66eb8b9f2cbc394bcd# Parent becdd3c867c764f1ff8427e2426f6d146a913b1a Merge pull request #137 from GitHub. diff -r becdd3c867c7 -r a1cf97b8f48f autoload/gutentags/ctags.vim --- a/autoload/gutentags/ctags.vim Mon May 29 15:58:57 2017 +0200 +++ b/autoload/gutentags/ctags.vim Thu Jun 08 07:10:07 2017 -0700 @@ -35,6 +35,7 @@ " Gutentags Module Interface {{{ +let s:did_check_exe = 0 let s:runner_exe = gutentags#get_plat_file('update_tags') let s:unix_redir = (&shellredir =~# '%s') ? &shellredir : &shellredir . ' %s' @@ -54,11 +55,14 @@ endif " Check if the ctags executable exists. - if g:gutentags_enabled && executable(expand(g:gutentags_ctags_executable, 1)) == 0 - let g:gutentags_enabled = 0 - echoerr "Executable '".g:gutentags_ctags_executable."' can't be found. " - \."Gutentags will be disabled. You can re-enable it by " - \."setting g:gutentags_enabled back to 1." + if s:did_check_exe == 0 + if g:gutentags_enabled && executable(expand(g:gutentags_ctags_executable, 1)) == 0 + let g:gutentags_enabled = 0 + echoerr "Executable '".g:gutentags_ctags_executable."' can't be found. " + \."Gutentags will be disabled. You can re-enable it by " + \."setting g:gutentags_enabled back to 1." + endif + let s:did_check_exe = 1 endif endfunction