Skip to content

Commit 8c59ddd

Browse files
committed
Bug fix for :UpdateTags: Gracefully handle case where no supported file type is known
See the comment by @ixti in issue #57 on GitHub: #57 (comment)
1 parent fe6ba73 commit 8c59ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/xolox/easytags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: June 22, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '3.3.10'
6+
let g:xolox#easytags#version = '3.3.11'
77

88
" Plug-in initialization. {{{1
99

@@ -242,7 +242,7 @@ endfunction
242242
function! s:prep_cmdline(cfile, tagsfile, firstrun, arguments, context) " {{{3
243243
let languages = xolox#misc#option#get('easytags_languages', {})
244244
let applicable_filetypes = xolox#easytags#select_supported_filetypes(&ft)
245-
let ctags_language_name = xolox#easytags#to_ctags_ft(applicable_filetypes[0])
245+
let ctags_language_name = xolox#easytags#to_ctags_ft(get(applicable_filetypes, 0, ''))
246246
let language = get(languages, ctags_language_name, {})
247247
if empty(language)
248248
let program = xolox#misc#option#get('easytags_cmd')

0 commit comments

Comments
 (0)