Skip to content

Commit 6246e57

Browse files
blehreroriori1703
andauthored
handle cancellation
Co-authored-by: Ori Perry <[email protected]>
1 parent c44ae63 commit 6246e57

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
@@ -113,6 +113,10 @@ return {
113113
prompt = 'Edit Breakpoint',
114114
format_item = function(item) return ('%s: %s'):format(item, props[item].value) end,
115115
}, function(choice)
116+
if choice == nil then
117+
-- User cancelled the selection
118+
return
119+
end
116120
props[prompt].setter(vim.fn.input {
117121
prompt = ('[%s] '):format(prompt),
118122
default = props[prompt].value,

0 commit comments

Comments
 (0)