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

Bug: Acme: Scrolling is not deterministic for long lines #668

Open
spektrokalter opened this issue Sep 30, 2024 · 0 comments
Open

Bug: Acme: Scrolling is not deterministic for long lines #668

spektrokalter opened this issue Sep 30, 2024 · 0 comments

Comments

@spektrokalter
Copy link

Expected behavior

When I scroll with button 3, the line next to the cursor always goes to the beginning of the visible area. Similarly, If the line is long and broken (wordwrapped) by Acme, clicking on the line's second part pushes it to the beginning of the visible area.

Clicking button 1 on the same place must, and in most cases does, pull the line back to its original place. If the line is long and broken by Acme, though, button 1 must guarantee that the visible part of the line goes back.

Unexpected behavior

If the first visible line is long and broken by Acme, button 1 does not pull it's visible part to the cursor's location.

Steps to reproduce the problem

The problem typically occurs when Acme breaks long lines. Find a long line, make Acme break it, and scroll with buttons 3 and 1 on the line's first or second part.

Another weird behavior is exhibited by the first visible line broken by Acme. Try to scroll it's second part with buttons 3 and 1. On button 1, the whole line goes to its original place except it's first character.

See demo for visual demonstration of the two cases.

acme-4-demo.mov

Sometimes even the beginning of the long line does not return. I couldn't identify the exact cause, though, but there's a demo.

acme-4-demo-2.mov

plan9port version

a2567fc

OS version

macOS 14.5 (23F79)

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

1 participant