Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
reset diff viewer on refresh #194
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.