diff options
Diffstat (limited to 'autoload/xolox')
-rw-r--r-- | autoload/xolox/easytags.vim | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index d0dec21..6028dde 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -76,26 +76,11 @@ function! xolox#easytags#check_ctags_compatible(name, min_version) " {{{2 let result = xolox#misc#os#exec({'command': command, 'check': 0}) if result['exit_code'] != 0 call xolox#misc#msg#debug("easytags.vim %s: Command '%s' returned nonzero exit code %i!", g:xolox#easytags#version, a:name, result['exit_code']) + return 0 else - " Extract the version number from the output. - let pattern = '\(Exuberant\|Universal\) Ctags \zs\(\d\+\(\.\d\+\)*\|Development\)' - let g:easytags_ctags_version = matchstr(get(result['stdout'], 0, ''), pattern) - " Deal with development builds. - if g:easytags_ctags_version == 'Development' - call xolox#misc#msg#debug("easytags.vim %s: Assuming development build is compatible ..", g:xolox#easytags#version, a:name) - return 1 - endif - " Make sure the version is compatible. - if xolox#misc#version#at_least(a:min_version, g:easytags_ctags_version) - call xolox#misc#msg#debug("easytags.vim %s: Version is compatible! :-)", g:xolox#easytags#version) - return 1 - else - call xolox#misc#msg#debug("easytags.vim %s: Version is not compatible! :-(", g:xolox#easytags#version) - endif + let g:easytags_ctags_version = '5.5' + return 1 endif - call xolox#misc#msg#debug("easytags.vim %s: Standard output of command: %s", g:xolox#easytags#version, string(result['stdout'])) - call xolox#misc#msg#debug("easytags.vim %s: Standard error of command: %s", g:xolox#easytags#version, string(result['stderr'])) - return 0 endfunction function! xolox#easytags#register(global) " {{{2 |