[evolution/gnome-3-18] EHTMLEditorView - Post-process every HISTORY_DELETE event
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EHTMLEditorView - Post-process every HISTORY_DELETE event
- Date: Fri, 20 Nov 2015 13:53:58 +0000 (UTC)
commit 1ded72e3fbacd493d6db7f282ce0304f2fc768e0
Author: Tomas Popela <tpopela redhat com>
Date: Fri Nov 20 14:31:25 2015 +0100
EHTMLEditorView - Post-process every HISTORY_DELETE event
We need to interpret every redo of a HISTORY_DELETE event as regular Backspace
or Delete key press, otherwise the state of the content could differ.
e-util/e-html-editor-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 70662b9..1c8841b 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -12987,6 +12987,7 @@ redo_delete (EHTMLEditorView *view,
}
}
+ out:
view->priv->dont_save_history_in_body_input = TRUE;
view->priv->undo_redo_in_progress = FALSE;
body_input_event_cb (NULL, NULL, view);
@@ -12995,7 +12996,7 @@ redo_delete (EHTMLEditorView *view,
view->priv->renew_history_after_coordinates = FALSE;
body_key_up_event_process_backspace_or_delete (view, delete_key);
view->priv->renew_history_after_coordinates = TRUE;
- out:
+
restore_selection_to_history_event_state (view, event->after);
e_html_editor_view_force_spell_check_for_current_paragraph (view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]