aboutsummaryrefslogtreecommitdiff
path: root/src/action.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-06 01:45:36 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-06 01:45:36 +0000
commitb0190c5521b9a1a50812cfbaddfa346a250c0536 (patch)
treea79646487ad858a32877d8158236db7bdf44a3a6 /src/action.c
parent4bd089ce9b2dbc5fe4a751f9d068a2356befed3e (diff)
action.c: fixed a bug that inserted text was always placed at the top.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1217 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/action.c')
-rw-r--r--src/action.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/action.c b/src/action.c
index 5cf0374d..1fc39335 100644
--- a/src/action.c
+++ b/src/action.c
@@ -581,7 +581,9 @@ static gboolean execute_actions(gchar *action, GSList *msg_list,
gtk_text_buffer_get_iter_at_offset
(textbuf, &start_iter, body_pos);
gtk_text_buffer_get_end_iter(textbuf, &end_iter);
- gtk_text_buffer_place_cursor(textbuf, &start_iter);
+ if (!(action_type & ACTION_INSERT))
+ gtk_text_buffer_place_cursor
+ (textbuf, &start_iter);
}
msg_str = gtk_text_buffer_get_text
(textbuf, &start_iter, &end_iter, FALSE);