You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Add comments
This commit is contained in:
@@ -210,7 +210,7 @@ export function textOffsetsToSelectionState({start, end}: SelectionRange,
|
|||||||
});
|
});
|
||||||
start = -1;
|
start = -1;
|
||||||
} else {
|
} else {
|
||||||
start -= blockLength + 1;
|
start -= blockLength + 1; // +1 to account for newline between blocks
|
||||||
}
|
}
|
||||||
if (end !== -1 && end <= blockLength) {
|
if (end !== -1 && end <= blockLength) {
|
||||||
selectionState = selectionState.merge({
|
selectionState = selectionState.merge({
|
||||||
@@ -219,7 +219,7 @@ export function textOffsetsToSelectionState({start, end}: SelectionRange,
|
|||||||
});
|
});
|
||||||
end = -1;
|
end = -1;
|
||||||
} else {
|
} else {
|
||||||
end -= blockLength + 1;
|
end -= blockLength + 1; // +1 to account for newline between blocks
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return selectionState;
|
return selectionState;
|
||||||
|
|||||||
Reference in New Issue
Block a user