Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create case folded tags files when &ignorecase is on

  • Loading branch information...
commit ff64be5fe506a9a15dce28bac5b5585d4430f4a6 1 parent cc41135
@xolox authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 autoload.vim
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.