@elextr commented on this pull request.
@@ -191,7 +191,7 @@ void sidebar_update_tag_list(GeanyDocument *doc, gboolean update)
g_return_if_fail(doc == NULL || doc->is_valid);
Nah, I made that mistake first too, but doc == NULL has to keep going to remove the tag tree if there is no doc