Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edit variables #355

Merged
merged 1 commit into from
Jul 13, 2024
Merged

Fix edit variables #355

merged 1 commit into from
Jul 13, 2024

Conversation

szaffarano
Copy link
Contributor

@szaffarano szaffarano commented May 2, 2024

Fixes #349

As reported by the linked issue, editing variables shows an error, although it works as expected. The problem was that it wasn't capturing the first pcall return value (aka success) to figure out whether the pcall worked or not, and then, yes, use its second return value (aka result) to eventually handle the error.
More info: http://www.lua.org/manual/5.1/manual.html#pdf-pcall

@myth0genesis
Copy link

This worked for me on Windows 11 and Neovim 0.10.0.

@rcarriga
Copy link
Owner

Thanks for the PR! 😄

@rcarriga rcarriga merged commit a5606bc into rcarriga:master Jul 13, 2024
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.

Editing local variables triggers an error, but variables can be succesfully modified
3 participants