aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-11-10 14:58:20 -0700
committerkatherine <shmibs@shmibbles.me>2018-11-10 14:58:20 -0700
commite35d5a1b2d3e36f483a4f9b6cd3e4fe2c5874ccc (patch)
tree81f9744a00a37124bb6c60b4dfe1ca57922a207b
parent72a8753b5d0a951e547c51b13633f680a95b5483 (diff)
downloadvim-easytags-e35d5a1b2d3e36f483a4f9b6cd3e4fe2c5874ccc.tar.gz
bypass version checkingHEADmaster
explodey otherwise; enough to know that the thing is installed, since old versions don't really exist anywhere now
-rw-r--r--autoload/xolox/easytags.vim21
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