Skip to content

Commit

Permalink
Bug fix for :UpdateTags: Gracefully handle case where no supported fi…
Browse files Browse the repository at this point in the history
…le type is known

See the comment by @ixti in issue #57 on GitHub:
  #57 (comment)
  • Loading branch information
xolox committed Jun 22, 2013
1 parent fe6ba73 commit 8c59ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/xolox/easytags.vim
Expand Up @@ -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

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 8c59ddd

Please sign in to comment.