Commits

Takeshi NISHIDA  committed c73f3ec

minor change

  • Participants
  • Parent commits 283d82c

Comments (0)

Files changed (2)

File autoload/acp.vim

 "=============================================================================
 " LOAD GUARD {{{1
 
-if exists('g:loaded_autoload_acp') || v:version < 702
+if !l9#guardScriptLoading(expand('<sfile>:p'), 702, 100)
   finish
 endif
-let g:loaded_autoload_acp = 1
 
 " }}}1
 "=============================================================================

File plugin/acp.vim

 "=============================================================================
 " LOAD GUARD {{{1
 
-let s:REQUIRED_VERSION_VIM = 702
-let s:REQUIRED_VERSION_L9 = 1.0
-if exists('g:loaded_acp')
-  finish
-elseif v:version < s:REQUIRED_VERSION_VIM
-  echoerr 'AutoComplPop requires Vim version ' . string(s:REQUIRED_VERSION_VIM)
-  finish
-elseif !exists('*l9#isCompatible') || !l9#isCompatible(s:REQUIRED_VERSION_L9)
-  echoerr 'AutoComplPop requires L9 library version ' . string(s:REQUIRED_VERSION_L9)
+if !l9#guardScriptLoading(expand('<sfile>:p'), 702, 100)
   finish
 endif
-let g:loaded_acp = 1
 
 " }}}1
 "=============================================================================