[geary/mjog/entry-undo-cleanup] Components.EntryUndo: Minor fixes



commit c73f853f3e7009d2a5674a9216be6d1b03d2d015
Author: Michael Gratton <mike vee net>
Date:   Wed Nov 13 09:29:32 2019 +1100

    Components.EntryUndo: Minor fixes
    
    Ensure we clear the text accumulator on reset and fix a typo in a
    debug message.

 src/client/components/components-entry-undo.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/client/components/components-entry-undo.vala 
b/src/client/components/components-entry-undo.vala
index 9928c524..8d11bcda 100644
--- a/src/client/components/components-entry-undo.vala
+++ b/src/client/components/components-entry-undo.vala
@@ -129,6 +129,7 @@ public class Components.EntryUndo : Geary.BaseObject {
     /** Resets the editing stack for the target entry. */
     public void reset() {
         this.last_edit = NONE;
+        this.edit_accumuluator.truncate();
         this.commands.clear();
     }
 
@@ -186,7 +187,7 @@ public class Components.EntryUndo : Geary.BaseObject {
                     this.commands.redo.end(res);
                 } catch (GLib.Error thrown) {
                     debug(
-                        "Failed to undo entry edit command: %s",
+                        "Failed to redo entry edit command: %s",
                         thrown.message
                     );
                 }


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