Skip to content

Commit

Permalink
Fix hover and threads widget name conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Jan 8, 2023
1 parent 1077a86 commit 700a3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dap/ui/widgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ M.threads = {
refresh_listener = 'event_thread',
new_buf = function()
local buf = new_buf()
api.nvim_buf_set_name(buf, 'dap-threads')
api.nvim_buf_set_name(buf, 'dap-threads-' .. tostring(buf))
return buf
end,
render = function(view)
Expand Down Expand Up @@ -411,7 +411,7 @@ function M.hover(expr, winopts)
.new_win(M.with_resize(with_winopts(M.new_cursor_anchored_float_win, winopts)))
.build()
local buf = view.open(value)
api.nvim_buf_set_name(buf, 'dap-hover: ' .. value)
api.nvim_buf_set_name(buf, 'dap-hover-' .. tostring(buf) .. ': ' .. value)
api.nvim_win_set_cursor(view.win, {1, 0})
return view
end
Expand Down

0 comments on commit 700a3c7

Please sign in to comment.