Closed tani closed 5 years ago
const originalRange = [
originalPosition.column,
originalPosition.column + correction.length,
];
We would use originalIndexFromIndex(generatedIndex): number instead of originalPositionFromIndex
?
Yes, it's better way. Now I testing it locally. Please wait few minutes...
It passed exists tests, now I add a test case for this issue.
I added them, thank you.
This plugin fails in this case
I guess the reason is that this library calculate position to fix by the column.