Browse Source

Snapshot undo text after paste.

Fixes #2732
Steven Kirk 6 years ago
parent
commit
4c2b77fdb6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Avalonia.Controls/TextBox.cs

+ 2 - 0
src/Avalonia.Controls/TextBox.cs

@@ -390,8 +390,10 @@ namespace Avalonia.Controls
             {
                 return;
             }
+
             _undoRedoHelper.Snapshot();
             HandleTextInput(text);
+            _undoRedoHelper.Snapshot();
         }
 
         protected override void OnKeyDown(KeyEventArgs e)