diff options
author | Peter Odding <peter@peterodding.com> | 2014-10-21 20:32:16 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2014-10-21 20:32:16 +0200 |
commit | 10427de54060e4a8e52ceee8c1319fe882c56dc1 (patch) | |
tree | 8732fd738116687ace00695dc17179d495943f6a /autoload | |
parent | 29ce86959acb317bdc3c778ee2a4223d339169c8 (diff) | |
download | vim-easytags-10427de54060e4a8e52ceee8c1319fe882c56dc1.tar.gz |
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
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/xolox/easytags.vim | 2 | ||||
-rw-r--r-- | 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)] |