From e35d5a1b2d3e36f483a4f9b6cd3e4fe2c5874ccc Mon Sep 17 00:00:00 2001 From: katherine Date: Sat, 10 Nov 2018 14:58:20 -0700 Subject: bypass version checking explodey otherwise; enough to know that the thing is installed, since old versions don't really exist anywhere now --- autoload/xolox/easytags.vim | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'autoload/xolox/easytags.vim') 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 -- cgit v1.2.3