# HG changeset patch # User Sean Egan # Date 1182964944 0 # Node ID db4b0aa4ed8c258989548e11137d9b8160c814f5 # Parent 2e7a9f33cfd3e6d95d48001c166609bc726ddf71 Re-arrange a few lines in gtkimhtml's paste function so that we reset formatting after moving the cursor to the new location. Fixes #1198 diff -r 2e7a9f33cfd3 -r db4b0aa4ed8c pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Wed Jun 27 16:13:49 2007 +0000 +++ b/pidgin/gtkimhtml.c Wed Jun 27 17:22:24 2007 +0000 @@ -1002,11 +1002,12 @@ gtk_imhtml_close_tags(imhtml, &iter); gtk_imhtml_insert_html_at_iter(imhtml, text, flags, &iter); - if (!imhtml->wbfo && !plaintext) - gtk_imhtml_close_tags(imhtml, &iter); gtk_text_buffer_move_mark_by_name(imhtml->text_buffer, "insert", &iter); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(imhtml), gtk_text_buffer_get_insert(imhtml->text_buffer), 0, FALSE, 0.0, 0.0); + if (!imhtml->wbfo && !plaintext) + gtk_imhtml_close_tags(imhtml, &iter); + } static void paste_plaintext_received_cb (GtkClipboard *clipboard, const gchar *text, gpointer data)