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

Small inconvenience: END jumps past hidden stuff on next line #117

Open
ftolsson opened this issue May 11, 2022 · 2 comments
Open

Small inconvenience: END jumps past hidden stuff on next line #117

ftolsson opened this issue May 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ftolsson
Copy link

A small quirk with hidden Fountain markup:

With hide markup OFF, and the caret at the beginning of the character name in this text:

                CHARACTER
     _Well?_

and you hit END (or cmd + right arrow) the caret, as expected, goes to the right of the word character: CHARACTER |

But if you turn it ON, hitting END will send the caret to the next line and past the hidden underscore, like this:

                CHARACTER
     _|Well?_

This is also true for asterisks. I'm guessing Beat should rather check where this line ends, but now probably checks where next begins?

@ftolsson ftolsson added the bug Something isn't working label May 11, 2022
@lmparppei
Copy link
Owner

This is the inferred behavior of NSTextView. It moves around by DRAWN glyphs. Because these glyphs are drawn only when the cursor is on the actual line, text view has hard time understanding which index is which.

I'll have to study if I can somehow circumvent this.

@ftolsson
Copy link
Author

Get it. But does it really need to check what's on the next line to correctly end up after the last glyph on this, though?
I'm thinking that the the "after last glyph, but before CR" logic should look the same regardless?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants