You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move your cursor onto a fold, and then stage or unstage with s from the file panel
Health check
Output of :checkhealth diffview
diffview: ✅
Checking icon provider ~
- No icon provider found (nvim-web-devicons or mini.icons). Icons will be disabled; set `use_icons = false` to silence this.
Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- ✅ OK Git is up-to-date. (2.56.0)
Log info
Relevant info from :DiffviewLog
############################
### PUT LOG CONTENT HERE ###
############################
@nathanzeng@dlyongemallo I opened a PR (#375). The mistake was, that the way, the cursor is handled during browsing through file revisions - especially the folding - was also applied in other cases.
The reason why I added it for revision browsing: When I step through revision of a file, I am interested in the development of a certain code section. This is why I want to keep the cursor position (it is a best guess) and when the cursor lands in a fold, I want to see the code immediately. But this behavior doesn't make sense when switching between different files and the bug was the missing constrain.
Activity
nathanzeng commentedon Oct 25, 2026
22a2931 is the first 'bad' commit
nathanzeng commentedon Nov 1, 2026
@seflue @dlyongemallo Looks like this happens when the cursor is placed in a fold. I updated the reproductions steps to specify that.
I also vibe-coded a PR in my fork here in case that's helpful for reference: nathanzeng#1
seflue commentedon Nov 1, 2026
When the cursor is in a fold this is actually intended. But only to unfold where the cursor is, not to open all folds.
nathanzeng commentedon Nov 2, 2026
For the way I use diffview plus, I don't think I ever want to unfold. Would you consider supporting that via configuration or as a default?
seflue commentedon Nov 2, 2026
@nathanzeng @dlyongemallo I opened a PR (#375). The mistake was, that the way, the cursor is handled during browsing through file revisions - especially the folding - was also applied in other cases.
The reason why I added it for revision browsing: When I step through revision of a file, I am interested in the development of a certain code section. This is why I want to keep the cursor position (it is a best guess) and when the cursor lands in a fold, I want to see the code immediately. But this behavior doesn't make sense when switching between different files and the bug was the missing constrain.