diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/action.c | 4 |
3 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-10-06 + + * src/action.c: execute_actions(): don't move cursor on insertion + mode (fixed a bug that inserted text was always placed at the top). + 2006-10-05 * src/gtkutils.c: gtkut_window_popup(): unset skip_taskbar_hint (fixes diff --git a/ChangeLog.ja b/ChangeLog.ja index 97479b8c..e714387a 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2006-10-06 + + * src/action.c: execute_actions(): 挿入モードではカーソルを移動しない + ようにした(挿入するテキストが常に先頭に配置されるバグを修正)。 + 2006-10-05 * src/gtkutils.c: gtkut_window_popup(): skip_taskbar_hint を解除する 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); |