[Github-comments] [geany/geany-plugins] vimode: Separate command and search history (#848)

Matthew Brush notifications at xxxxx
Sat May 4 21:25:24 UTC 2019


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-find-with-equal-func) or greater I guess.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/848#pullrequestreview-233751892
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190504/60574a82/attachment.html>


More information about the Github-comments mailing list