diff options
author | Peter Odding <peter@peterodding.com> | 2010-06-10 21:48:02 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2010-06-10 21:48:02 +0200 |
commit | d319117aa8392b2605d9bab64d1153827fd29488 (patch) | |
tree | 105297c6f68d11d68a9851ed8bba02b6669d43d2 /autoload.vim | |
parent | 43a704c57a151ea1018f8532a02b5afbd30d2d48 (diff) | |
download | vim-easytags-d319117aa8392b2605d9bab64d1153827fd29488.tar.gz |
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.
Diffstat (limited to 'autoload.vim')
-rw-r--r-- | autoload.vim | 7 |
1 files 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() |