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

don't resize pane with delta #6062

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

don't resize pane with delta #6062

wants to merge 1 commit into from

Commits on Aug 30, 2024

  1. don't resize pane with delta

    say the pane with 100 cols wide, we got 3 mouse events, one move the
    split to 99, the next one move it to 98, then to 90
    
    we would first call resize_split_by with -1, -1, then with -8. the first
    resize is completed just as we call resize_split_by(-8), this triggers a
    resync, and updates the split position to 99. because of that
    resize_split_by(-8) will try to resize it to 91, instead of the desire
    90.
    
    in practice, there are a lot more mouse events and the timing is more
    unpredictable, the end result can be very chaotic.
    
    partially fix wez#5142
    yshui committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    ef70253 View commit details
    Browse the repository at this point in the history