[evolution] EHTMLEditorView - Post-process every HISTORY_DELETE event



commit 7fe049b28a9e4037274aba1a80779a686141220d
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 966d881..6a330ad 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -13021,6 +13021,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);
@@ -13029,7 +13030,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]