st-entry: don't assume a cursor func has been set

That won't be the case when called from tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484
This commit is contained in:
Cosimo Cecchi 2017-06-06 14:27:18 -07:00
parent d5cac6559d
commit a256a35779

View File

@ -739,6 +739,7 @@ static void
st_entry_set_cursor (StEntry *entry,
gboolean use_ibeam)
{
if (cursor_func)
cursor_func (entry, use_ibeam, cursor_func_data);
((StEntryPrivate *)ST_ENTRY_PRIV (entry))->has_ibeam = use_ibeam;