Fix a problem in tm_tags_remove_file_tags() when more tags of the same name exist
This commit is contained in:
parent
cb9e4bbf74
commit
d7ed48f86b
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user