make calls to glob* compatible with vim 7.1
This commit is contained in:
		
							parent
							
								
									5e5923c1ea
								
							
						
					
					
						commit
						b6071db7a5
					
				| @ -126,7 +126,7 @@ endf | |||||||
| 
 | 
 | ||||||
| func! vundle#installer#clean(bang) abort | func! vundle#installer#clean(bang) abort | ||||||
|   let bundle_dirs = map(copy(g:bundles), 'v:val.path()')  |   let bundle_dirs = map(copy(g:bundles), 'v:val.path()')  | ||||||
|   let all_dirs = split(globpath(g:bundle_dir, '*', 1), "\n") |   let all_dirs = v:version >= 702 ? split(globpath(g:bundle_dir, '*', 1), "\n") : split(globpath(g:bundle_dir, '*'), "\n") | ||||||
|   let x_dirs = filter(all_dirs, '0 > index(bundle_dirs, v:val)') |   let x_dirs = filter(all_dirs, '0 > index(bundle_dirs, v:val)') | ||||||
| 
 | 
 | ||||||
|   if empty(x_dirs) |   if empty(x_dirs) | ||||||
| @ -179,7 +179,9 @@ endf | |||||||
| func! s:has_doc(rtp) abort | func! s:has_doc(rtp) abort | ||||||
|   return isdirectory(a:rtp.'/doc') |   return isdirectory(a:rtp.'/doc') | ||||||
|   \   && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')) |   \   && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')) | ||||||
|   \   && !(empty(glob(a:rtp.'/doc/*.txt', 1)) && empty(glob(a:rtp.'/doc/*.??x', 1))) |   \   && v:version >= 702 | ||||||
|  |   \     ? !(empty(glob(a:rtp.'/doc/*.txt', 1)) && empty(glob(a:rtp.'/doc/*.??x', 1))) | ||||||
|  |   \     : !(empty(glob(a:rtp.'/doc/*.txt')) && empty(glob(a:rtp.'/doc/*.??x'))) | ||||||
| endf | endf | ||||||
| 
 | 
 | ||||||
| func! s:helptags(rtp) abort | func! s:helptags(rtp) abort | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user