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

confusing section folding toggle behavior #2297

Open
bart9h opened this issue Apr 30, 2024 · 0 comments
Open

confusing section folding toggle behavior #2297

bart9h opened this issue Apr 30, 2024 · 0 comments

Comments

@bart9h
Copy link

bart9h commented Apr 30, 2024

In the status screen (the one you arrive with :G) you can open and close the diff for each file with =. You can also open and close the diffs for all files of a section at once by hitting = in the section header, right?

Not quite. Pressing = in the section header actually toggles the diff display for each file. If I have files A, B, C, D and E; individually open the diff for B, C and E; and then decide to close all diffs, by pressing = on the section header, it actually closes the diff for B, C and E but opens the diff for A and D.

The behavior I would expect is: if there is any diff opened, then close all; else, open all.

PS: thanks a lot for this wonderful plugin, it's a must-have to me

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