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

Word diff doesn't work for unstaged changes #1207

Closed
majutsushi opened this issue Jun 24, 2022 · 2 comments
Closed

Word diff doesn't work for unstaged changes #1207

majutsushi opened this issue Jun 24, 2022 · 2 comments
Labels

Comments

@majutsushi
Copy link

When enabling the word-diff option the diffs of normal commits are displayed as expected, with the changed words highlighted. However when looking at unstaged changes in the stage view, the highlighting completely disappears instead, not even line-wise highlighting is shown. Since the stage view is one of the most useful places to have word diffs it would be great if that could be supported as well.

@koutcher
Copy link
Collaborator

Good catch. This will be easy to fix, however note that you won't be able to stage chunks (with u) when viewing word-diff as the patch is required for this.

@majutsushi
Copy link
Author

That's okay, it's easy enough to switch between modes with a keyboard shortcut. I wonder if it would be possible to change the u behaviour to switch modes automatically before and after applying a patch, but that may be too tricky to get right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants