# HG changeset patch # User Ludovic Chabant # Date 1406050803 25200 # Node ID b853ad0e7afd9f3ce2a91f3e205614665dabce5d # Parent f0f1d20d6f5c08313818cf9a512fe86166a305e5 Only define `:AutotagsToggleFake` if debug mode is on. diff -r f0f1d20d6f5c -r b853ad0e7afd plugin/autotags.vim --- 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 {{{