diff src/conversation.c @ 2631:a2cf3cac7e66

[gaim-migrate @ 2644] bah. this is better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 27 Oct 2001 23:46:12 +0000
parents d8d2df2bdf01
children b0c5770156e1
line wrap: on
line diff
--- a/src/conversation.c	Sat Oct 27 21:45:17 2001 +0000
+++ b/src/conversation.c	Sat Oct 27 23:46:12 2001 +0000
@@ -723,8 +723,11 @@
 				gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event");
 			}
 		}
-		if (event->keyval == 'l')
+		if (event->keyval == 'l') {
 			gtk_imhtml_clear(GTK_IMHTML(c->text));
+			g_string_free(c->history, TRUE);
+			c->history = g_string_new("");
+		}
 		if ((!c->is_chat && (im_options & OPT_IM_ONE_WINDOW)) ||
 		    (c->is_chat && (chat_options & OPT_CHAT_ONE_WINDOW))) {
 			GtkWidget *notebook = (c->is_chat ? chat_notebook : convo_notebook);