Skip to content

Commit

Permalink
Always prefer earlier tag definitions in the same document
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 15, 2010
1 parent 537fe77 commit 17b9e75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload.vim
Expand Up @@ -30,11 +30,11 @@ function! publish#find_tags(files_to_publish) " {{{1
let tags_to_publish[entry.name] = entry
else
let num_duplicates += 1
let other = tags_to_publish[entry.name]
if entry.filename == other.filename && entry.lnum < other.lnum
let tags_to_publish[entry.name] = entry
endif
if num_duplicates <= 3
let other = tags_to_publish[entry.name]
if entry.filename == other.filename && entry.lnum < other.lnum
let tags_to_publish[entry.name] = entry
endif
let tag_name = string(entry.name)
let this_path = string(entry.filename)
let other_path = string(other.filename)
Expand Down

0 comments on commit 17b9e75

Please sign in to comment.