[evolution/wip/webkit-composer: 334/372] EComposerPrivate: Fix caret position in "Start typing at the bottom on replying"



commit ef351868ae6030cca3be9ff2a7a7eab79e21a704
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jan 21 14:54:33 2014 +0100

    EComposerPrivate: Fix caret position in "Start typing at the bottom on replying"

 composer/e-composer-private.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 3a28da9..2ee3c6d 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -863,15 +863,15 @@ composer_move_caret (EMsgComposer *composer)
                                        NULL);
                        }
 
+                       e_editor_selection_restore_caret_position (editor_selection);
+                       e_editor_widget_quote_plain_text (editor_widget);
+                       e_editor_widget_force_spellcheck (editor_widget);
+
                        input_start = webkit_dom_document_get_element_by_id (document, "-x-evo-input-start");
                        if (input_start)
                                webkit_dom_range_select_node_contents (new_range, WEBKIT_DOM_NODE 
(input_start), NULL);
 
                        webkit_dom_range_collapse (new_range, FALSE, NULL);
-
-                       e_editor_selection_restore_caret_position (editor_selection);
-                       e_editor_widget_quote_plain_text (editor_widget);
-                       e_editor_widget_force_spellcheck (editor_widget);
                } else {
                        if (!has_paragraphs_in_body) {
                                if (webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (body))) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]