techee 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))
Ah, OK, I didn't notice the checks failed. I'll add some additional commits to this pull request so the command line behaves more like vim.