Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Always prefer earlier tag definitions in the same document

  • Loading branch information...
commit 17b9e7563464da908baf45870831599e2bc9c809 1 parent 537fe77
Peter Odding authored June 15, 2010

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

  1. 8  autoload.vim
8  autoload.vim
@@ -30,11 +30,11 @@ function! publish#find_tags(files_to_publish) " {{{1
30 30
         let tags_to_publish[entry.name] = entry
31 31
       else
32 32
         let num_duplicates += 1
  33
+        let other = tags_to_publish[entry.name]
  34
+        if entry.filename == other.filename && entry.lnum < other.lnum
  35
+          let tags_to_publish[entry.name] = entry
  36
+        endif
33 37
         if num_duplicates <= 3
34  
-          let other = tags_to_publish[entry.name]
35  
-          if entry.filename == other.filename && entry.lnum < other.lnum
36  
-            let tags_to_publish[entry.name] = entry
37  
-          endif
38 38
           let tag_name = string(entry.name)
39 39
           let this_path = string(entry.filename)
40 40
           let other_path = string(other.filename)

0 notes on commit 17b9e75

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