From 8c59ddd54e5100a2757fe03d2d95c65d51076e16 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sat, 22 Jun 2013 02:44:35 +0200 Subject: Bug fix for :UpdateTags: Gracefully handle case where no supported file type is known See the comment by @ixti in issue #57 on GitHub: https://github.com/xolox/vim-easytags/issues/57#issuecomment-19720077 --- autoload/xolox/easytags.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload') diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 63a0f43..8f302e9 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -3,7 +3,7 @@ " Last Change: June 22, 2013 " URL: http://peterodding.com/code/vim/easytags/ -let g:xolox#easytags#version = '3.3.10' +let g:xolox#easytags#version = '3.3.11' " Plug-in initialization. {{{1 @@ -242,7 +242,7 @@ endfunction function! s:prep_cmdline(cfile, tagsfile, firstrun, arguments, context) " {{{3 let languages = xolox#misc#option#get('easytags_languages', {}) let applicable_filetypes = xolox#easytags#select_supported_filetypes(&ft) - let ctags_language_name = xolox#easytags#to_ctags_ft(applicable_filetypes[0]) + let ctags_language_name = xolox#easytags#to_ctags_ft(get(applicable_filetypes, 0, '')) let language = get(languages, ctags_language_name, {}) if empty(language) let program = xolox#misc#option#get('easytags_cmd') -- cgit v1.2.3