aboutsummaryrefslogtreecommitdiff
path: root/src/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/action.c')
-rw-r--r--src/action.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/action.c b/src/action.c
index 22c13108..f00340b5 100644
--- a/src/action.c
+++ b/src/action.c
@@ -576,7 +576,8 @@ static gboolean execute_actions(gchar *action, GSList *msg_list,
is_selection = gtk_text_buffer_get_selection_bounds
(textbuf, &start_iter, &end_iter);
if (!is_selection) {
- gtk_text_buffer_get_start_iter(textbuf, &start_iter);
+ gtk_text_buffer_get_iter_at_offset
+ (textbuf, &start_iter, body_pos);
gtk_text_buffer_get_end_iter(textbuf, &end_iter);
}
msg_str = gtk_text_buffer_get_text
@@ -1004,8 +1005,7 @@ static void update_io_dialog(Children *children)
gtk_widget_show(children->scrolledwin);
textbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
- gtk_text_buffer_get_start_iter(textbuf, &start_iter);
- gtk_text_buffer_get_end_iter(textbuf, &end_iter);
+ gtk_text_buffer_get_bounds(textbuf, &start_iter, &end_iter);
gtk_text_buffer_delete(textbuf, &start_iter, &end_iter);
gtk_text_buffer_get_start_iter(textbuf, &iter);