Skip to content

fix: improve set_cursor_position with pcall for fault tolerance#14

Open
mskadu wants to merge 2 commits into
vladdoster:masterfrom
mskadu:fix/improve-api-call-fault-tolerance
Open

fix: improve set_cursor_position with pcall for fault tolerance#14
mskadu wants to merge 2 commits into
vladdoster:masterfrom
mskadu:fix/improve-api-call-fault-tolerance

Conversation

@mskadu
Copy link
Copy Markdown

@mskadu mskadu commented Apr 30, 2026

Summary

  • Wrap set_cursor_position in pcall to catch errors gracefully
  • Add error notification via vim.notify when Neovim API calls fail
  • Add tests to verify fault tolerance behavior

Changes

This prevents the plugin from crashing when unexpected API errors occur.

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.

1 participant