@@ -16,27 +16,26 @@ M.show = function()
1616 -- Clear previous content
1717 api .nvim_buf_set_lines (state .bufnr , 0 , - 1 , true , {})
1818
19- if
20- views .cleanup_view (not dap .session (), " No active session" )
21- or views .cleanup_view (not state .exceptions_options , " Not supported by debug adapter" )
22- then
19+ if views .cleanup_view (not dap .session (), " No active session" ) then
2320 return
2421 end
2522
26- if state .exceptions_options then
27- local content = vim .iter (state .exceptions_options )
28- :map (function (opt )
29- local icon = opt .enabled and " " or " "
30- return " " .. icon .. " " .. opt .exception_filter .label
31- end )
32- :totable ()
23+ if views .cleanup_view (not state .exceptions_options , " Not supported by debug adapter" ) then
24+ return
25+ end
26+
27+ local content = vim .iter (state .exceptions_options or {})
28+ :map (function (opt )
29+ local icon = opt .enabled and " " or " "
30+ return " " .. icon .. " " .. opt .exception_filter .label
31+ end )
32+ :totable ()
3333
34- api .nvim_buf_set_lines (state .bufnr , 0 , - 1 , false , content )
34+ api .nvim_buf_set_lines (state .bufnr , 0 , - 1 , false , content )
3535
36- for i , opt in ipairs (state .exceptions_options ) do
37- local hl_type = opt .enabled and " Enabled" or " Disabled"
38- hl .hl_range (" ExceptionFilter" .. hl_type , { i - 1 , 0 }, { i - 1 , 4 })
39- end
36+ for i , opt in ipairs (state .exceptions_options ) do
37+ local hl_type = opt .enabled and " Enabled" or " Disabled"
38+ hl .hl_range (" ExceptionFilter" .. hl_type , { i - 1 , 0 }, { i - 1 , 4 })
4039 end
4140 end
4241end
0 commit comments