misc/vim: fix omnifunc order of results found in the long doc
[nit.git] / misc / vim / plugin / nit.vim
index 3cef764..073ef8b 100644 (file)
@@ -146,7 +146,7 @@ fun NitOmnifuncAddFromFile(base, matches, path)
                        call s:NitOmnifuncAddAMatch(synopsis_matches, words, name)
                elseif get(words, 3, '') =~? a:base
                        " Match in the longer doc
-                       call s:NitOmnifuncAddAMatch(synopsis_matches, words, name)
+                       call s:NitOmnifuncAddAMatch(doc_matches, words, name)
                endif
        endfor