Fix a problem in tm_tags_remove_file_tags() when more tags of the same name exist

This commit is contained in:
Jiří Techet 2014-10-31 02:03:13 +01:00
parent cb9e4bbf74
commit d7ed48f86b

View File

@ -831,7 +831,9 @@ void tm_tags_remove_file_tags(TMSourceFile *source_file, GPtrArray *tags_array)
{
/* we cannot set the pointer to NULL now because the search wouldn't work */
g_ptr_array_add(to_delete, found);
break;
/* no break - if there are multiple tags of the same name, we would
* always find the first instance and wouldn't remove others; duplicates
* in the to_delete list aren't a problem */
}
found++;
}