Commit 5d6fd6c2 authored by Christian Hergert's avatar Christian Hergert
Browse files

suggestion-entry: fix length of text

This fixes some beeps that would be heard from Gtk due to failed length
checks when deleting.
parent 4e22566a
......@@ -119,6 +119,9 @@ dzl_suggestion_entry_buffer_get_text (GtkEntryBuffer *buffer,
priv->text = g_string_free (str, FALSE);
}
if (n_bytes != NULL)
*n_bytes = strlen (priv->text);
return priv->text;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment