Skip to content

Commit

Permalink
Bug fix for xolox#easytags#filetypes#find_ctags_aliases()
Browse files Browse the repository at this point in the history
When a canonical Vim file type mapped to a group of file types,
the group was returned without the canonical file type :-s

See also issue #91 on GitHub:
  #91
  • Loading branch information
xolox committed Oct 21, 2014
1 parent 29ce869 commit 10427de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/xolox/easytags.vim
Expand Up @@ -3,7 +3,7 @@
" Last Change: October 21, 2014
" URL: http://peterodding.com/code/vim/easytags/

let g:xolox#easytags#version = '3.8'
let g:xolox#easytags#version = '3.8.2'
let g:xolox#easytags#default_pattern_prefix = '\C\<'
let g:xolox#easytags#default_pattern_suffix = '\>'

Expand Down
3 changes: 2 additions & 1 deletion autoload/xolox/easytags/filetypes.vim
Expand Up @@ -75,7 +75,8 @@ endfunction
function! xolox#easytags#filetypes#find_ctags_aliases(canonical_vim_filetype) " {{{1
" Find Exuberant Ctags languages that correspond to a canonical, supported Vim file type.
if has_key(s:filetype_groups, a:canonical_vim_filetype)
let filetypes = copy(s:filetype_groups[a:canonical_vim_filetype])
let filetypes = [a:canonical_vim_filetype]
call extend(filetypes, s:filetype_groups[a:canonical_vim_filetype])
return map(filetypes, 'xolox#easytags#filetypes#to_ctags(v:val)')
else
return [xolox#easytags#filetypes#to_ctags(a:canonical_vim_filetype)]
Expand Down

0 comments on commit 10427de

Please sign in to comment.