From 3c8276bc5752a607f3a16e1a4a683b5f73b3db37 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 6 Dec 2007 09:53:07 +0100 Subject: [PATCH] Fixed bug with command history: now test with previous is case sensitive --- src/gui/gui-history.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/gui-history.c b/src/gui/gui-history.c index 216ee7e6b..971d5690a 100644 --- a/src/gui/gui-history.c +++ b/src/gui/gui-history.c @@ -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) {