Mercurial > vim
diff src/tag.c @ 1541:0d0bf7598dcb v7.1.256
updated for version 7.1-256
author | vimboss |
---|---|
date | Wed, 20 Feb 2008 11:24:52 +0000 |
parents | cc4fe241baa3 |
children | 73fe8baea242 |
line wrap: on
line diff
--- a/src/tag.c +++ b/src/tag.c @@ -2669,8 +2669,8 @@ get_tagfname(tnp, first, buf) tnp->tn_search_ctx = vim_findfile_init(buf, filename, r_ptr, 100, - FALSE, /* don't free visited list */ - FALSE, /* we search for a file */ + FALSE, /* don't free visited list */ + FINDFILE_FILE, /* we search for a file */ tnp->tn_search_ctx, TRUE, curbuf->b_ffname); if (tnp->tn_search_ctx != NULL) tnp->tn_did_filefind_init = TRUE; @@ -2691,6 +2691,7 @@ tagname_free(tnp) { vim_free(tnp->tn_tags); vim_findfile_cleanup(tnp->tn_search_ctx); + tnp->tn_search_ctx = NULL; ga_clear_strings(&tag_fnames); }