File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,22 @@ return {
66
66
function ()
67
67
require ' dap.protocol'
68
68
local dap = require ' dap'
69
+
69
70
-- Search for an existing breakpoint on this line in this buffer
70
71
--- @return dap.SourceBreakpoint bp that was either found , or an empty placeholder
71
72
local function find_bp ()
72
73
local buf_bps = require (' dap.breakpoints' ).get (vim .fn .bufnr ())[vim .fn .bufnr ()]
73
74
--- @type dap.SourceBreakpoint
74
- local bp = { condition = ' ' , logMessage = ' ' , hitCondition = ' ' , line = vim .fn .line ' .' }
75
75
for _ , candidate in ipairs (buf_bps ) do
76
76
if candidate .line and candidate .line == vim .fn .line ' .' then
77
- bp = candidate
78
- break
77
+ return candidate
79
78
end
80
79
end
81
- return bp
80
+
81
+ return { condition = ' ' , logMessage = ' ' , hitCondition = ' ' , line = vim .fn .line ' .' }
82
82
end
83
83
84
+
84
85
-- Elicit customization via a UI prompt
85
86
--- @param bp dap.SourceBreakpoint a breakpoint
86
87
local function customize_bp (bp )
You can’t perform that action at this time.
0 commit comments