Skip to content

Conversation

@evilbungle
Copy link

No description provided.

@tomsci
Copy link
Contributor

tomsci commented Jun 4, 2022

This is an excellent improvement over the previous code, however it does mean the cursor position calculation in keyboard.py's get_cursor_xy() is no longer correct and you can't move the keyboard cursor across a space that was used to break a line, because the sum of the character count of the text from flow_lines doesn't line up with chars_walked and cursor_pos which are indexes into self.text. Because the space char is in self.text but not in the lines from flow_lines. If that makes sense. Suggestions how best to fix that are most welcome :)

1 similar comment
@tomsci
Copy link
Contributor

tomsci commented Jun 4, 2022

This is an excellent improvement over the previous code, however it does mean the cursor position calculation in keyboard.py's get_cursor_xy() is no longer correct and you can't move the keyboard cursor across a space that was used to break a line, because the sum of the character count of the text from flow_lines doesn't line up with chars_walked and cursor_pos which are indexes into self.text. Because the space char is in self.text but not in the lines from flow_lines. If that makes sense. Suggestions how best to fix that are most welcome :)

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

Successfully merging this pull request may close these issues.

2 participants