-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
reset diff viewer on refresh #194
Comments
is this file selected when you see this? is this a file that was previously modified but then became unmodified, and thus shouldn't show up in the diff? clicking in empty area in the status widget clears out the diff view (and deselects any files). try doing this -- click on a modified file and select one of the red or green diff lines in the diff view. hit "s". it'll stage that line and the diff view will refresh to show you that that line is no longer green (or red) modified, as it is now staged. in that use case the refresh is intentional. if you're editing the file in your editor, and you add a line in the middle of the diff there, refresh keeps the scrollbars in the same place and updates the contents so that you can see that a new line was added. on linux inotify refreshes it automatically. maybe you'd like a way to disable the "re-diff the selected file and update the diff view" behavior? that means you'd have to keep clicking the file all the time.. can you please describe what's going on a bit more? |
there is no file to select. The working branch is clean
shortcut key was used
this happens when commit is done through another interface, say, through I hope this explains it to you better. |
Thanks, yes, that helps. I had a feeling there might be an edge case somewhere. This is fixable. When refreshing we just need to check for the clean (empty) state and empty out the diff. |
this is also happening when you revert some changes. When it's the last file, until you click the status viewer, the diff will be there. |
while refreshing the diff viewer retains the previous diff contents
![screen-cap-of-diff-no-reset](https://camo.githubusercontent.com/9d84343fd2b9436981ef35b191746dc9fd26ca0b5aff5fdef669c89e68968560/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313436383931302f3932343333392f32666139643432322d666636352d313165322d383533662d3164646161383436666133632e706e67)
The text was updated successfully, but these errors were encountered: