Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always prefer earlier tag definitions in the same document

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