From 10427de54060e4a8e52ceee8c1319fe882c56dc1 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Tue, 21 Oct 2014 20:32:16 +0200 Subject: Bug fix for xolox#easytags#filetypes#find_ctags_aliases() 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: https://github.com/xolox/vim-easytags/issues/91 --- autoload/xolox/easytags.vim | 2 +- autoload/xolox/easytags/filetypes.vim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 9874783..d97b333 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -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 = '\>' diff --git a/autoload/xolox/easytags/filetypes.vim b/autoload/xolox/easytags/filetypes.vim index bba6386..aef073a 100644 --- a/autoload/xolox/easytags/filetypes.vim +++ b/autoload/xolox/easytags/filetypes.vim @@ -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)] -- cgit v1.2.3