diff --git a/IDE/src/ui/RenameSymbolDialog.bf b/IDE/src/ui/RenameSymbolDialog.bf index 2424df46..c042ab2e 100644 --- a/IDE/src/ui/RenameSymbolDialog.bf +++ b/IDE/src/ui/RenameSymbolDialog.bf @@ -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; }