diff options
author | Peter Odding <peter@peterodding.com> | 2013-06-22 02:44:35 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2013-06-22 02:44:35 +0200 |
commit | 8c59ddd54e5100a2757fe03d2d95c65d51076e16 (patch) | |
tree | d96d2d894c5b416e255bc6380f7c2610864e8a95 /autoload | |
parent | fe6ba732f9122246496d6d66229d0d2967a59c8e (diff) | |
download | vim-easytags-8c59ddd54e5100a2757fe03d2d95c65d51076e16.tar.gz |
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
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/xolox/easytags.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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') |