Skip to content

Commit 144f351

Browse files
committed
Check existence of created tag file
1 parent a364f36 commit 144f351

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

autoload/VIntSearch.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,12 @@ function! s:BuildTag()
678678
execute 'cd' prevdir
679679

680680
redraw
681-
echom "VIntSearch: The tag file for all source files under \'".searchpath."\' has been created: ".searchpath."/".tagfilename
681+
682+
if !filereadable(searchpath.'/'.g:vintsearch_tagfilename)
683+
echom "VIntSearch: The tag file is NOT created. Please install Exuberant Ctags first."
684+
else
685+
echom "VIntSearch: The tag file for all source files under \'".searchpath."\' has been created: ".searchpath."/".tagfilename
686+
endif
682687
endfunction
683688

684689
function! s:DoFinishingWork(qflist, keyword, searchtype, searchcmd, options, jump_to_firstitem, open_result_win, use_quickfix)

0 commit comments

Comments
 (0)