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: error message when :Gitsigns select dialog is cancelled #915

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

theofabilous
Copy link
Contributor

The :Gitsigns command prompts the user for an action via vim.ui.select when called without arguments, which yields nil when the dialog is cancelled.

Currently, this is not checked and if the user cancels the dialog, an error message is displayed: 'nil is not a valid function or action'. This PR simply returns from cli.run() silently if the vim.ui.select prompt was cancelled.

@lewis6991 lewis6991 merged commit 0ccd5fb into lewis6991:main Nov 17, 2023
6 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.

None yet

2 participants