Skip to content

Commit 9570b57

Browse files
AbstractTextInput: Add new ReplaceTextOperation fix
Linear: INSTL-182
1 parent f1dc061 commit 9570b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/src/main/kotlin/gg/essential/installer/gui/component/text/AbstractTextInput.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ abstract class AbstractTextInput(
525525
return
526526
}
527527

528-
val addTextOperation = AddTextOperation(text, cursor)
528+
val addTextOperation = AddTextOperation(text, selectionStart())
529529

530530
if (hasSelection()) {
531531
val removeTextOperation = RemoveTextOperation(selectionStart(), selectionEnd(), selectAfterUndo = true)

0 commit comments

Comments
 (0)