fix messageview remembering old position
[claws.git] / src / textview.c
index 4cc9552cb05275bfd17f8f170a52a211472b7fc5..b7e2477fef8c92f69cb915ef0bb1220bf51dccd2 100644 (file)
@@ -1352,6 +1352,7 @@ void textview_set_position(TextView *textview, gint pos)
 
        gtk_text_buffer_get_iter_at_offset(buffer, &iter, pos);
        gtk_text_buffer_place_cursor(buffer, &iter);
+       gtk_text_view_scroll_to_iter(text, &iter, 0.0, FALSE, 0.0, 0.0);
 }
 
 static GPtrArray *textview_scan_header(TextView *textview, FILE *fp)