Skip to content

Commit

Permalink
Snapshot undo text after paste.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Dec 19, 2019
1 parent e7f546e commit 4c2b77f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Controls/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,10 @@ private async void Paste()
{
return;
}

_undoRedoHelper.Snapshot();
HandleTextInput(text);
_undoRedoHelper.Snapshot();
}

protected override void OnKeyDown(KeyEventArgs e)
Expand Down

0 comments on commit 4c2b77f

Please sign in to comment.