# HG changeset patch # User marc # Date 1431852204 -7200 # Node ID 57649935316fb2633e3c1de04f19509872503f0b # Parent a14a788e3809193e54ee23ffd7b926440757bb90 Only consider main filetype in cases like 'python.django' diff -r a14a788e3809 -r 57649935316f autoload/gutentags.vim --- a/autoload/gutentags.vim Sun May 17 10:39:20 2015 +0200 +++ b/autoload/gutentags.vim Sun May 17 10:43:24 2015 +0200 @@ -177,8 +177,10 @@ " Get final ctags executable depending whether a filetype one is defined function! gutentags#get_ctags_executable() abort - if exists('g:gutentags_ctags_executable_{&filetype}') - return g:gutentags_ctags_executable_{&filetype} + "Only consider the main filetype in cases like 'python.django' + let l:ftype = get(split(&filetype, '\.'), 0, '') + if exists('g:gutentags_ctags_executable_{l:ftype}') + return g:gutentags_ctags_executable_{l:ftype} else return g:gutentags_ctags_executable endif