Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions VTMLEditor/GuiElements/Vanilla/GuiElementEditableTextBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ public void InsertTextAtCursor(string insert)
// If there is a selection, replace the selected text
if (HasSelection)
{
int start = SelectionStartWithoutLineBreaks;
int end = SelectionEndWithoutLineBreaks;
int start = TrueSelectionStartWithoutLineBreaks;
int end = TrueSelectionEndWithoutLineBreaks;
fulltext = fulltext[..start] + insert + fulltext[end..];
newCaretPos = start + insert.Length;
}
Expand Down