# HG changeset patch # User Sean Egan # Date 1070828475 0 # Node ID d2710acd0020ba9cca80166b36fd34266e9245f9 # Parent 61b5d682ddb4baf0457bbaed5c6d00bd216a3993 [gaim-migrate @ 8440] Fix! committer: Tailor Script diff -r 61b5d682ddb4 -r d2710acd0020 src/gtkimhtml.c --- 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)) {