From 6246e578732bfb2499b3159fca3cb869c89aa43e Mon Sep 17 00:00:00 2001 From: Brian Lehrer <661570+blehrer@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:41:05 -0700 Subject: [PATCH] handle cancellation Co-authored-by: Ori Perry <48057913+oriori1703@users.noreply.github.com> --- lua/kickstart/plugins/debug.lua | 4 ++++ 1 file changed, 4 insertions(+) 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,