Skip to content

fix: tolerate strict index conversion on nvim 0.12+#341

Merged
mochaaP merged 1 commit intonvimtools:mainfrom
crisidev:main
Apr 29, 2026
Merged

fix: tolerate strict index conversion on nvim 0.12+#341
mochaaP merged 1 commit intonvimtools:mainfrom
crisidev:main

Conversation

@crisidev
Copy link
Copy Markdown
Contributor

What does this PR do?

Neovim 0.12 made vim.str_byteindex / vim.str_utfindex strict by default and they now raise "index out of range" when the index exceeds the string, where older versions silently clamped.

Neovim 0.12 made vim.str_byteindex / vim.str_utfindex strict by default
and they now raise "index out of range" when the index exceeds the
string, where older versions silently clamped. Two call sites in
none-ls were relying on the lenient behavior:
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 27, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3d7eca97-1a0c-4d9e-a79d-0a23e947b222

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mochaaP mochaaP merged commit 241ff82 into nvimtools:main Apr 29, 2026
3 of 4 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