Skip to content

Commit 3739fc5

Browse files
blehreroriori1703
andcommitted
handle cancellation
Co-authored-by: Ori Perry <48057913+oriori1703@users.noreply.github.com>
1 parent 97bebb6 commit 3739fc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/kickstart/plugins/debug.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ return {
8585
prompt = 'Edit Breakpoint',
8686
format_item = function(item) return ('%s: %s'):format(item, props[item].value) end,
8787
}, function(choice)
88+
if choice == nil then
89+
-- User cancelled the selection
90+
return
91+
end
8892
props[prompt].setter(vim.fn.input {
8993
prompt = ('[%s] '):format(prompt),
9094
default = props[prompt].value,

0 commit comments

Comments
 (0)