We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e600ca commit cf94cfbCopy full SHA for cf94cfb
lua/dap.lua
@@ -511,7 +511,13 @@ end
511
512
function M.list_breakpoints(open_quickfix)
513
local qf_list = lazy.breakpoints.to_qf_list(lazy.breakpoints.get())
514
- vim.fn.setqflist({}, 'r', {
+ local current_qflist_title = vim.fn.getqflist({ title = 1 }).title
515
+ action = ' '
516
+ if current_qflist_title == DAP_QUICKFIX_TITLE then
517
+ action = 'r'
518
+ end
519
+
520
+ vim.fn.setqflist({}, action, {
521
items = qf_list,
522
context = DAP_QUICKFIX_CONTEXT,
523
title = DAP_QUICKFIX_TITLE
0 commit comments