Merge branch 'invisible-char-fix' into 'master'

textbtree: Initialize to zero the tags counting array

See merge request GNOME/gtk!3740
This commit is contained in:
Matthias Clasen 2021-07-09 10:56:51 +00:00
commit c1af63de9b

View File

@ -2483,6 +2483,8 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter)
tagCnts = g_alloca (sizeof (int) * numTags);
tags = g_alloca (sizeof (GtkTextTag *) * numTags);
memset (tagCnts, 0, sizeof (int) * numTags);
/*
* Record tag toggles within the line of indexPtr but preceding
* indexPtr.