1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed off-by-one in symbol rename cursor adjustment

This commit is contained in:
Brian Fiete 2025-01-20 10:18:12 -08:00
parent 45ff0b341b
commit 81057f7b5a

View file

@ -719,7 +719,7 @@ namespace IDE.ui
editWidgetContent.mData.mUndoManager.Add(insertTextAction);
editWidgetContent.PhysInsertAtCursor(newStr, false);
if (spanStart <= cursorPos)
if (spanStart < cursorPos)
cursorPos += strLenDiff;
}