mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed cursor movement when deleting chars while renaming symbols
This commit is contained in:
parent
0c9374cfa2
commit
474bad09b2
1 changed files with 2 additions and 1 deletions
|
@ -719,7 +719,8 @@ namespace IDE.ui
|
|||
editWidgetContent.mData.mUndoManager.Add(insertTextAction);
|
||||
editWidgetContent.PhysInsertAtCursor(newStr, false);
|
||||
|
||||
if (spanStart < cursorPos)
|
||||
if (((strLenDiff > 0) && (spanStart + strLenDiff < cursorPos)) ||
|
||||
((strLenDiff < 0) && (spanStart + strLenDiff <= cursorPos)))
|
||||
cursorPos += strLenDiff;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue