<p><b>@codebrainz</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany-plugins/pull/848#discussion_r280995774">vimode/src/excmd-prompt.c</a>:</p>
<pre style='color:#555'>>  
-                       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))
</pre>
<p>Requires <a href="https://developer.gnome.org/glib/stable/glib-Pointer-Arrays.html#g-ptr-array-find-with-equal-func" rel="nofollow">GLib 2.54</a> or greater I guess.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/848#pullrequestreview-233751892">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3UH7X767LVBE7THCTPTX5MHANCNFSM4HKYJHTA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJY3QNTWEB2RCMEQMA3PTX5MHA5CNFSM4HKYJHTKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBXXMKVA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/848#pullrequestreview-233751892",
"url": "https://github.com/geany/geany-plugins/pull/848#pullrequestreview-233751892",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>