Skip to content

Commit

Permalink
Revert "Change widget/repl toggle to close and re-open if in was on o…
Browse files Browse the repository at this point in the history
…ther tabpage"

This reverts commit 6bf4de6.
  • Loading branch information
mfussenegger committed Nov 27, 2024
1 parent cc92b05 commit d0ac996
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/dap/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,9 @@ function M.new_view(new_buf, new_win, opts)
local win = self.win
local buf = self.buf
if win and api.nvim_win_is_valid(win) and api.nvim_win_get_buf(win) == buf then
local win_tabpage = api.nvim_win_get_tabpage(win)
local current_tabpage = api.nvim_get_current_tabpage()
api.nvim_win_close(win, true)
self.win = nil
closed = win_tabpage == current_tabpage
closed = true
end
local hide = close_opts.mode == 'toggle'
if buf and not hide then
Expand Down

0 comments on commit d0ac996

Please sign in to comment.