mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-07 19:44:58 +02:00
handle cancellation
Co-authored-by: Ori Perry <48057913+oriori1703@users.noreply.github.com>
This commit is contained in:
parent
c44ae63f04
commit
6246e57873
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ return {
|
|||
prompt = 'Edit Breakpoint',
|
||||
format_item = function(item) return ('%s: %s'):format(item, props[item].value) end,
|
||||
}, function(choice)
|
||||
if choice == nil then
|
||||
-- User cancelled the selection
|
||||
return
|
||||
end
|
||||
props[prompt].setter(vim.fn.input {
|
||||
prompt = ('[%s] '):format(prompt),
|
||||
default = props[prompt].value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue