You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
dont jump to next part when inserting at *start* of uneditable part
This commit is contained in:
@@ -232,8 +232,9 @@ export default class EditorModel {
|
|||||||
index += 1;
|
index += 1;
|
||||||
this._insertPart(index, splitPart);
|
this._insertPart(index, splitPart);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (offset !== 0) {
|
||||||
// not-editable, insert str after this part
|
// not-editable part, caret is not at start,
|
||||||
|
// so insert str after this part
|
||||||
addLen += part.text.length - offset;
|
addLen += part.text.length - offset;
|
||||||
index += 1;
|
index += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user