changeset 7794:d2710acd0020

[gaim-migrate @ 8440] Fix! committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 07 Dec 2003 20:21:15 +0000
parents 61b5d682ddb4
children 069ee4ecb56a
files src/gtkimhtml.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sun Dec 07 20:09:06 2003 +0000
+++ b/src/gtkimhtml.c	Sun Dec 07 20:21:15 2003 +0000
@@ -1236,6 +1236,11 @@
 	gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect);	
 	gtk_text_view_get_line_yrange(GTK_TEXT_VIEW(imhtml), &iter, &y, &height);
 
+	gtk_imhtml_clipboard_clear(NULL, imhtml);
+	gtk_text_buffer_move_mark (imhtml->text_buffer,
+				   gtk_text_buffer_get_mark (imhtml->text_buffer, "insert"),
+				   &iter);
+
 	if(((y + height) - (rect.y + rect.height)) > height 
 	   && gtk_text_buffer_get_char_count(imhtml->text_buffer)){
 		options |= GTK_IMHTML_NO_SCROLL;
@@ -2073,13 +2078,13 @@
 {
 	GtkIMHtmlFormatSpan *span = NULL;
 	GtkTextIter end;
-
+	
 	gtk_text_iter_forward_chars(iter, len);
 	gtk_text_buffer_get_end_iter(imhtml->text_buffer, &end);
 	gtk_text_iter_forward_char(&end);
 
-	//if (!gtk_text_iter_equal(&end, iter))
-	//	return;
+	if (!gtk_text_iter_equal(&end, iter))
+		return;
 
 	
 	if ((span = imhtml->edit.bold)) {