Skip to content

Commit 10427de

Browse files
committed
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: #91
1 parent 29ce869 commit 10427de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

autoload/xolox/easytags.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: October 21, 2014
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '3.8'
6+
let g:xolox#easytags#version = '3.8.2'
77
let g:xolox#easytags#default_pattern_prefix = '\C\<'
88
let g:xolox#easytags#default_pattern_suffix = '\>'
99

autoload/xolox/easytags/filetypes.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ endfunction
7575
function! xolox#easytags#filetypes#find_ctags_aliases(canonical_vim_filetype) " {{{1
7676
" Find Exuberant Ctags languages that correspond to a canonical, supported Vim file type.
7777
if has_key(s:filetype_groups, a:canonical_vim_filetype)
78-
let filetypes = copy(s:filetype_groups[a:canonical_vim_filetype])
78+
let filetypes = [a:canonical_vim_filetype]
79+
call extend(filetypes, s:filetype_groups[a:canonical_vim_filetype])
7980
return map(filetypes, 'xolox#easytags#filetypes#to_ctags(v:val)')
8081
else
8182
return [xolox#easytags#filetypes#to_ctags(a:canonical_vim_filetype)]

0 commit comments

Comments
 (0)