Skip to content

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
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