Since PR #356 was merged, reverting modified files for git works only for the first file. After that the action is without effect.
Expected behavior
Enter the diffview for a project in which multiple files were modified. Press X to revert the changes in multiple individual files. X should cause the changes for each individual files to be reverted.
Actual behavior
X works only for the first file.
Steps to reproduce
Enter the diffview for a project in which multiple files were modified (:DiffviewOpen)
Press X to revert the changes in multiple individual files.
Notice that X works only the first time
Health check
Output of :checkhealth diffview
```
==============================================================================
diffview: require("diffview.health").check()
Checking plugin dependencies ~
- OK nvim-web-devicons installed.
Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.40.1)
- WARNING Configured `hg_cmd` is not executable: 'hg'
```
Description
Since PR #356 was merged, reverting modified files for git works only for the first file. After that the action is without effect.
Expected behavior
Enter the diffview for a project in which multiple files were modified. Press X to revert the changes in multiple individual files. X should cause the changes for each individual files to be reverted.
Actual behavior
X works only for the first file.
Steps to reproduce
:DiffviewOpen
)Health check
Output of
``` ============================================================================== diffview: require("diffview.health").check() Checking plugin dependencies ~ - OK nvim-web-devicons installed. Checking VCS tools ~ - The plugin requires at least one of the supported VCS tools to be valid. - OK Git found. - OK Git is up-to-date. (2.40.1) - WARNING Configured `hg_cmd` is not executable: 'hg' ```:checkhealth diffview
Log info
No response
Neovim version
Operating system and version
Linux 6.3.5-200.fc38.x86_64 x86_64 GNU/Linux
Minimal config
No response