aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2010-07-18 19:07:26 +0200
committerPeter Odding <peter@peterodding.com>2010-07-18 19:07:26 +0200
commitff64be5fe506a9a15dce28bac5b5585d4430f4a6 (patch)
tree90962d1598caa61907ce11873c4129b319225f41
parentcc411355e4d7083daa45aefdee7ce58d27aefe8f (diff)
downloadvim-easytags-ff64be5fe506a9a15dce28bac5b5585d4430f4a6.tar.gz
Create case folded tags files when &ignorecase is on
-rw-r--r--autoload.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoload.vim b/autoload.vim
index bc679a8..847c0d2 100644
--- a/autoload.vim
+++ b/autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: July 15, 2010
+" Last Change: July 18, 2010
" URL: http://peterodding.com/code/vim/easytags/
let s:script = expand('<sfile>:p:~')
@@ -46,7 +46,9 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{2
let start = xolox#timer#start()
let tagsfile = easytags#get_tagsfile()
let command = [g:easytags_cmd, '-f', shellescape(tagsfile), '--fields=+l']
- if filereadable(tagsfile)
+ if !filereadable(tagsfile)
+ call add(command, '--sort=' . (&ic ? 'foldcase' : 'yes'))
+ else
call add(command, '-a')
let filter_file_tags = update_tags && easytags#file_has_tags(filename)
if a:filter_invalid_tags || filter_file_tags