Skip to content

Conversation

@s0ber
Copy link
Contributor

@s0ber s0ber commented Jan 3, 2026

The fix for this issue #97 was actually not enough. We should only restore visual selection if we were in a visual mode in a first place.

The issue is described in more details in this comment:
#97 (comment)

PS. Huge thanks for the great plugin.

@s0ber s0ber changed the title Only reset visual mode selection if input was spawned from visual mode fix: only restore visual mode selection if input was spawned from visual mode Jan 3, 2026
@NickvanDyke
Copy link
Owner

oops thank you! not sure how I missed this 🤦

Does it work to just check self.range ~= nil, rather than store this new field? Or does that miss an edge case?

@s0ber
Copy link
Contributor Author

s0ber commented Jan 3, 2026

@NickvanDyke It seems like it really should be enough! I've pushed a fix for that.

@NickvanDyke
Copy link
Owner

yay, tyvm for this!

@NickvanDyke NickvanDyke merged commit e235528 into NickvanDyke:main Jan 4, 2026
2 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.

2 participants