1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Yet another cursor logic change for sym rename - typing at start

This commit is contained in:
Brian Fiete 2025-01-26 11:38:36 -08:00
parent 833d2854a3
commit ce42dc4fbe

View file

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