comparison plugin/gutentags.vim @ 27:173f055bde34

Make sure we get a clean project dir.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 16 Sep 2014 17:04:25 -0700
parents a20588c2c020
children 217be2e61ed4
comparison
equal deleted inserted replaced
26:8bcc9da32f7c 27:173f055bde34
142 let l:markers += g:ctrlp_root_markers 142 let l:markers += g:ctrlp_root_markers
143 endif 143 endif
144 while l:path != l:previous_path 144 while l:path != l:previous_path
145 for root in g:gutentags_project_root 145 for root in g:gutentags_project_root
146 if getftype(l:path . '/' . root) != "" 146 if getftype(l:path . '/' . root) != ""
147 return simplify(fnamemodify(l:path, ':p')) 147 let l:proj_dir = simplify(fnamemodify(l:path, ':p'))
148 return s:stripslash(l:proj_dir)
148 endif 149 endif
149 endfor 150 endfor
150 let l:previous_path = l:path 151 let l:previous_path = l:path
151 let l:path = fnamemodify(l:path, ':h') 152 let l:path = fnamemodify(l:path, ':h')
152 endwhile 153 endwhile