From d319117aa8392b2605d9bab64d1153827fd29488 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Thu, 10 Jun 2010 21:48:02 +0200 Subject: [PATCH] Bug fix: Make sure tags include "language" field The dynamic syntax highlighting performed by `easytags.vim` depends on the extra "language" field which Exuberant Ctags can be instructed to add to tags files with the --fields=+l command-line argument, however the `:UpdateTags` command didn't add the --fields argument! Now it does. --- autoload.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/autoload.vim b/autoload.vim index 0e2c366..ab4856b 100644 --- a/autoload.vim +++ b/autoload.vim @@ -41,11 +41,8 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{1 if (ft_supported && !ft_ignored) || a:filter_invalid_tags let start = xolox#timer#start() let tagsfile = easytags#get_tagsfile() - let filename = expand('%:p') - if g:easytags_resolve_links - let filename = resolve(filename) - endif - let command = [g:easytags_cmd, '-f', shellescape(tagsfile)] + let filename = s:resolve(expand('%:p')) + let command = [g:easytags_cmd, '-f', shellescape(tagsfile), '--fields=+l'] if filereadable(tagsfile) call add(command, '-a') let start_filter = xolox#timer#start()