Skip to content

Conversation

@LarssonMartin1998
Copy link

Make sure to always pass a offset_encoding to make_given_range_params and make_position_params. This is now a warning in nvim 11 even though the functionality hasnt changed, so it's backwards compatible.

Also slight refactorting, add util function get_offset_encoding with table for filtering how to get it to match new nvim api. This is used everywhere now.

@glepnir
Copy link
Member

glepnir commented Jan 14, 2025

lint fix thanks

@glepnir glepnir merged commit e5e25f8 into nvimdev:main Jan 14, 2025
2 of 4 checks passed
@LarssonMartin1998 LarssonMartin1998 deleted the nvim11-position_encoding-fix branch January 14, 2025 10:34
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