1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

Fixed bug with command history: now test with previous is case sensitive

This commit is contained in:
Sebastien Helleu
2007-12-06 09:53:07 +01:00
parent 5e39a2c477
commit 3c8276bc57
+3 -4
View File
@@ -56,8 +56,7 @@ gui_history_buffer_add (void *buffer, char *string)
if (!ptr_buffer->history
|| (ptr_buffer->history
&& (string_strcasecmp (ptr_buffer->history->text,
string) != 0)))
&& (strcmp (ptr_buffer->history->text, string) != 0)))
{
new_history = (struct t_gui_history *)malloc (sizeof (struct t_gui_history));
if (new_history)
@@ -107,8 +106,8 @@ gui_history_global_add (char *string)
if (!history_global
|| (history_global
&& (string_strcasecmp (history_global->text, string) != 0)))
{
&& (strcmp (history_global->text, string) != 0)))
{
new_history = (struct t_gui_history *)malloc (sizeof (struct t_gui_history));
if (new_history)
{