Mercurial > vim-gutentags
diff plugin/autotags.vim @ 10:b853ad0e7afd
Only define `:AutotagsToggleFake` if debug mode is on.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 22 Jul 2014 10:40:03 -0700 |
parents | f0f1d20d6f5c |
children | 478638833c3b |
line wrap: on
line diff
--- a/plugin/autotags.vim Mon Jul 21 21:32:48 2014 -0700 +++ b/plugin/autotags.vim Tue Jul 22 10:40:03 2014 -0700 @@ -335,9 +335,12 @@ command! AutotagsToggleEnabled :let g:autotags_enabled=!g:autotags_enabled command! AutotagsToggleTrace :call autotags#trace() -command! AutotagsToggleFake :call autotags#fake() command! AutotagsUnlock :call delete(b:autotags_file . '.lock') +if g:autotags_debug + command! AutotagsToggleFake :call autotags#fake() +endif + " }}} " Autoload Functions {{{