src/conversation.c

changeset 2631
d6b85863554c
parent 2625
9590ffdcddd6
child 2662
9201ea07c91e
--- 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);

mercurial