From 345dae5a08b50676286c3a2c8398a10728bee2e9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 23 Feb 2016 23:42:04 +0900 Subject: [PATCH] [Tags] Return if failed to create tags --- autoload/fzf/vim.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 00e534f..2bc3c70 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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]