Skip to content
This repository
Browse code

Create case folded tags files when &ignorecase is on

  • Loading branch information...
commit ff64be5fe506a9a15dce28bac5b5585d4430f4a6 1 parent cc41135
Peter Odding authored July 18, 2010

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  autoload.vim
6  autoload.vim
... ...
@@ -1,6 +1,6 @@
1 1
 " Vim script
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: July 15, 2010
  3
+" Last Change: July 18, 2010
4 4
 " URL: http://peterodding.com/code/vim/easytags/
5 5
 
6 6
 let s:script = expand('<sfile>:p:~')
@@ -46,7 +46,9 @@ function! easytags#update_cmd(filter_invalid_tags) " {{{2
46 46
       let start = xolox#timer#start()
47 47
       let tagsfile = easytags#get_tagsfile()
48 48
       let command = [g:easytags_cmd, '-f', shellescape(tagsfile), '--fields=+l']
49  
-      if filereadable(tagsfile)
  49
+      if !filereadable(tagsfile)
  50
+        call add(command, '--sort=' . (&ic ? 'foldcase' : 'yes'))
  51
+      else
50 52
         call add(command, '-a')
51 53
         let filter_file_tags = update_tags && easytags#file_has_tags(filename)
52 54
         if a:filter_invalid_tags || filter_file_tags

0 notes on commit ff64be5

Please sign in to comment.
Something went wrong with that request. Please try again.