Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x is 'null' while it is asserted that it is some #450

Open
rroohhh opened this issue Jul 10, 2023 · 1 comment
Open

x is 'null' while it is asserted that it is some #450

rroohhh opened this issue Jul 10, 2023 · 1 comment

Comments

@rroohhh
Copy link
Member

rroohhh commented Jul 10, 2023

open blank document -> click into it to see a cursor -> press i

@pajowu
Copy link
Member

pajowu commented Jul 10, 2023

Source of the Error:

assertSome(selection);

Cause by the transcript correction code assuming that it can create a selection if the current selection is empty

if (state.selection == null) {
if (direction == 'right') {
moveSelectionHeadRight.reducer(state);
} else {
moveSelectionHeadLeft.reducer(state);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants