Permalink
Browse files

Check that the xolox#misc submodule is available

  • Loading branch information...
1 parent 670910e commit 6ddd431b695e6a93227102cc097cf3f360071633 @xolox committed May 1, 2011
Showing with 11 additions and 1 deletion.
  1. +11 −1 plugin/easytags.vim
View
@@ -4,7 +4,7 @@
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.2.6
+" Version: 2.2.7
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -16,6 +16,16 @@ endif
let s:script = expand('<sfile>:p:~')
+" Make sure the submodule with miscellaneous auto-load scripts is available.
+try
+ call xolox#misc#os#is_win()
@blueyed

blueyed May 2, 2011

Contributor

Couldn't you use exists('xolox#misc#os#is_win()') instead, for better performance?

+catch /^Vim\%((\a\+)\)\=:E117/
+ let s:msg = "It looks like the easytags plug-in wasn't correctly installed, if you're using"
+ let s:msg .= " git you should probably use 'git clone --recursive ...' to clone the repository!"
+ echoerr s:msg
+ finish
+endtry
+
" Configuration defaults and initialization. {{{1
if !exists('g:easytags_file')

2 comments on commit 6ddd431

Contributor

blueyed replied May 2, 2011

Couldn't you use exists('xolox#misc#os#is_win()') instead, for better performance?

Owner

xolox replied May 2, 2011

@blueyed: No that doesn't work, I actually ran into this earlier, see the following thread on vim-dev:

http://vim.1045645.n5.nabble.com/quot-exists-mylib-func-quot-will-return-0-in-some-cases-even-if-it-s-installed-td1211599.html

Please sign in to comment.