@@ -44,9 +44,7 @@ return {
4444 local buf_bps = require (' dap.breakpoints' ).get (vim .fn .bufnr ())[vim .fn .bufnr ()]
4545 --- @type dap.SourceBreakpoint
4646 for _ , candidate in ipairs (buf_bps ) do
47- if candidate .line and candidate .line == vim .fn .line ' .' then
48- return candidate
49- end
47+ if candidate .line and candidate .line == vim .fn .line ' .' then return candidate end
5048 end
5149
5250 return { condition = ' ' , logMessage = ' ' , hitCondition = ' ' , line = vim .fn .line ' .' }
@@ -58,21 +56,15 @@ return {
5856 local props = {
5957 [' Condition' ] = {
6058 value = bp .condition ,
61- setter = function (v )
62- bp .condition = v
63- end ,
59+ setter = function (v ) bp .condition = v end ,
6460 },
6561 [' Hit Condition' ] = {
6662 value = bp .hitCondition ,
67- setter = function (v )
68- bp .hitCondition = v
69- end ,
63+ setter = function (v ) bp .hitCondition = v end ,
7064 },
7165 [' Log Message' ] = {
7266 value = bp .logMessage ,
73- setter = function (v )
74- bp .logMessage = v
75- end ,
67+ setter = function (v ) bp .logMessage = v end ,
7668 },
7769 }
7870 local menu_options = {}
@@ -81,9 +73,7 @@ return {
8173 end
8274 vim .ui .select (menu_options , {
8375 prompt = ' Edit Breakpoint' ,
84- format_item = function (item )
85- return (' %s: %s' ):format (item , props [item ].value )
86- end ,
76+ format_item = function (item ) return (' %s: %s' ):format (item , props [item ].value ) end ,
8777 }, function (choice )
8878 if choice == nil then
8979 -- User cancelled the selection
0 commit comments