Skip to content

Commit

Permalink
This fixes #349
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenAssassine committed Dec 30, 2022
1 parent 79fb943 commit 013889f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TextControlBox/TextControlBox.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ private void AddNewLine()
undoRedo.RecordUndoAction(() =>
{
CursorPosition = Selection.Replace(TextSelection, TotalLines, NewLineCharacter, NewLineCharacter);
}, TotalLines, TextSelection, 2, NewLineCharacter);
}, TotalLines, TextSelection, 1, NewLineCharacter);
}

ClearSelection();
Expand Down

0 comments on commit 013889f

Please sign in to comment.