substructing a diff in caretPos to support connected languages