Merge branch 'mcatanzaro/#6734' into 'main'

text: fix critical in paste_received

Closes #6734

See merge request GNOME/gtk!7290
This commit is contained in:
Emmanuele Bassi 2024-05-22 23:17:15 +00:00
commit 4142c4d79e

View File

@ -5417,6 +5417,8 @@ paste_received (GObject *clipboard,
if (priv->truncate_multiline)
length = truncate_multiline (text);
else
length = strlen (text);
begin_change (self);
if (priv->selection_bound != priv->current_pos)