diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 2857d401..2e40d579 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -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,