diff src/tag.c @ 845:0fe7765dcb8e

updated for version 7.0f03
author vimboss
date Thu, 27 Apr 2006 21:40:34 +0000
parents 8e5830943bff
children c5cafb21c45b
line wrap: on
line diff
--- a/src/tag.c
+++ b/src/tag.c
@@ -218,7 +218,8 @@ do_tag(tag, type, count, forceit, verbos
 	    use_tagstack = TRUE;
 
 	/* new pattern, add to the tag stack */
-	if (*tag && (type == DT_TAG || type == DT_SELECT || type == DT_JUMP
+	if (*tag != NUL
+		&& (type == DT_TAG || type == DT_SELECT || type == DT_JUMP
 #ifdef FEAT_QUICKFIX
 		    || type == DT_LTAG
 #endif
@@ -356,14 +357,15 @@ do_tag(tag, type, count, forceit, verbos
 		cs_free_tags();
 #endif
 		num_matches = 0;
+		tag_freematch();
 		goto end_do_tag;
 	    }
 
 	    if (type == DT_TAG
 #if defined(FEAT_QUICKFIX)
-		|| type == DT_LTAG
+		    || type == DT_LTAG
 #endif
-		)
+	       )
 	    {
 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
 		if (g_do_tagpreview)