[Tags] Return if failed to create tags

This commit is contained in:
Junegunn Choi committed 2016-02-24 00:09:08 +09:00
1 parent df25989b2b
commit 345dae5a08
1 file changed
+3
+3
View File
@@ -522,6 +522,9 @@ function! fzf#vim#tags(...)
if empty(tagfiles())
call s:warn('Preparing tags')
call system('ctags -R')
if empty(tagfiles())
return s:warn('Failed to create tags')
endif
endif
let tagfile = tagfiles()[0]