[evolution] EHTMLEditorView - Avoid extra selection save/restore in list manipulation
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Avoid extra selection save/restore in list manipulation
- Date: Fri, 26 Feb 2016 09:52:42 +0000 (UTC)
commit 398d37e757a3cf9c68bd309ff0abeba9f7e29add
Author: Tomas Popela <tpopela redhat com>
Date: Fri Feb 26 10:32:28 2016 +0100
EHTMLEditorView - Avoid extra selection save/restore in list manipulation
e-util/e-html-editor-view.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index cfc5789..feb64fa 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5583,8 +5583,6 @@ return_pressed_in_empty_list_item (EHTMLEditorView *view)
WebKitDOMNode *list;
if (!view->priv->undo_redo_in_progress) {
- /* Insert new history event for Return to have the right coordinates.
- * The fragment will be added later. */
ev = g_new0 (EHTMLEditorViewHistoryEvent, 1);
ev->type = HISTORY_INPUT;
@@ -5620,8 +5618,6 @@ return_pressed_in_empty_list_item (EHTMLEditorView *view)
list,
NULL);
- e_html_editor_selection_restore (selection);
-
if (ev) {
e_html_editor_selection_get_selection_coordinates (
selection,
@@ -5635,6 +5631,8 @@ return_pressed_in_empty_list_item (EHTMLEditorView *view)
e_html_editor_view_insert_new_history_event (view, ev);
}
+ e_html_editor_selection_restore (selection);
+
e_html_editor_view_set_changed (view, TRUE);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]