Skip to content

Commit 700a3c7

Browse files
committed
Fix hover and threads widget name conflicts
1 parent 1077a86 commit 700a3c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/dap/ui/widgets.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ M.threads = {
171171
refresh_listener = 'event_thread',
172172
new_buf = function()
173173
local buf = new_buf()
174-
api.nvim_buf_set_name(buf, 'dap-threads')
174+
api.nvim_buf_set_name(buf, 'dap-threads-' .. tostring(buf))
175175
return buf
176176
end,
177177
render = function(view)
@@ -411,7 +411,7 @@ function M.hover(expr, winopts)
411411
.new_win(M.with_resize(with_winopts(M.new_cursor_anchored_float_win, winopts)))
412412
.build()
413413
local buf = view.open(value)
414-
api.nvim_buf_set_name(buf, 'dap-hover: ' .. value)
414+
api.nvim_buf_set_name(buf, 'dap-hover-' .. tostring(buf) .. ': ' .. value)
415415
api.nvim_win_set_cursor(view.win, {1, 0})
416416
return view
417417
end

0 commit comments

Comments
 (0)