changeset 189:25dbdb52adb5

Merge pull request #135 from GitHub.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 08 Jun 2017 07:11:43 -0700
parents a1cf97b8f48f (diff) 676fe2ea919f (current diff)
children 6dc4bb6c53ba 09cc408db201 4689b770e4fa
files
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/README.md	Tue May 16 16:04:41 2017 -0400
+++ b/README.md	Thu Jun 08 07:11:43 2017 -0700
@@ -43,7 +43,7 @@
 always consistent with the source code.
 
 Also, Gutentags is clever enough to not stumble upon itself by triggering
-multiple ctags processes if you save files to fast, or your project is really
+multiple ctags processes if you save files too fast, or your project is really
 big.
 
 
--- a/autoload/gutentags/ctags.vim	Tue May 16 16:04:41 2017 -0400
+++ b/autoload/gutentags/ctags.vim	Thu Jun 08 07:11:43 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