Skip to content

Conversation

@rockyzhang24
Copy link
Contributor

@rockyzhang24 rockyzhang24 commented May 15, 2025

Closes #92

Problem:

When pressing r twice to toggle word diff followed by pressing d to open unified diff, state.prev_diff will be none and state.diff will be current. Both prev_is_word and is_word will be 0, so that if block to update syntax will be skipped.

Solution:

Update syntax if prev_diff is none.

Thank you!

Copy link
Owner

@rhysd rhysd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Thanks.

@rhysd
Copy link
Owner

rhysd commented May 30, 2025

I confirmed tests passed on my local. I'll fix the lint error later.

@rhysd rhysd merged commit 0b7905b into rhysd:master May 30, 2025
2 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight glitch if I press r followed by d

2 participants