Describe the bug
Executing :vertical :ball after :ball (and vice versa) resets 'scrollbind' for the first N-2 windows if N is more than 2.
To Reproduce
gvim --clean 1.txt 2.txt 3.txt (Files: 1.txt, 2.txt, 3.txt):ball'scrollbind' for all the windows with :windo set scrollbind, check that it's set with :windo set scrollbind?:vertical :ball. The windows get rearranged vertically:windo set scrollbind?. 'scrollbind' for the window with 1.txt is off.Expected behavior
'scrollbind' for that window should be on.
Environment
Additional context
Same happens if it's :vertical :ball at step 2 and :ball at step 4.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Using :ball closes and creates windows as needed. There is no guarantee that window-local options are preserved.
Since the commands used here change the window layout some windows will be closed and then windows are split to show the right buffers.
The 'scrollbind' option is window-local, not buffer-local, thus the closing and opening of windows cause it to be back at the default. That is not really a bug.
Closed #7676.