codebrainz commented on this pull request.
- if (link) - { - g_free(link->data); - history = g_list_remove_link(history, link); - } - if (g_strcmp0(text, ":") != 0) - history = g_list_prepend(history, g_strdup(text)); + if (g_ptr_array_find_with_equal_func(history, text + 1, g_str_equal, &index))
Requires [GLib 2.54](https://developer.gnome.org/glib/stable/glib-Pointer-Arrays.html#g-ptr-array...) or greater I guess.