diff --git a/BeefLibs/Beefy2D/src/widgets/EditWidget.bf b/BeefLibs/Beefy2D/src/widgets/EditWidget.bf index e49a1bf4..080440e9 100644 --- a/BeefLibs/Beefy2D/src/widgets/EditWidget.bf +++ b/BeefLibs/Beefy2D/src/widgets/EditWidget.bf @@ -2625,7 +2625,7 @@ namespace Beefy.widgets } // Case, when we have multiple cursors - var identicalCountOfCusrors = ((mTextCursors.Count == fragments.Count) || (mTextCursors.Count == 1 && fragments.Count == 0)); + var identicalCountOfCursors = ((mTextCursors.Count == fragments.Count) || (mTextCursors.Count == 1 && fragments.Count == 0)); var sortedCursors = GetSortedCursors(.. scope List()); var idx = sortedCursors.Count-1; @@ -2634,11 +2634,6 @@ namespace Beefy.widgets if (sortedCursors.Count == 1) undoBatchStart = mData.mUndoManager.Add(.. new UndoBatchStart("paste")); - if (!identicalCountOfCusrors) - { - text.RemoveFromEnd(1); - } - for (var cursor in sortedCursors.Reversed) { SetTextCursor(cursor); @@ -2648,7 +2643,7 @@ namespace Beefy.widgets PasteFragment(text, extra); continue; } - else if (!identicalCountOfCusrors) + else if (!identicalCountOfCursors) { PasteFragment(text, fragments[0].mExtra); continue;