Skip to content

Commit c88146e

Browse files
committed
fix: revert not deleting term buf when no session was run yet
1 parent f95ab83 commit c88146e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lua/dap-view/events.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ dap.listeners.before.initialize[SUBSCRIPTION_ID] = function(session, _)
2727
--
2828
-- To address that, we only close the terminal if the new session has a different adapter
2929
-- (which should cover most scenarios where the flickering would occur)
30-
--
31-
-- Since there has not been a `last_active_adapter` yet, we don't need to
32-
-- call `delete_term_buf`, which conflicts with bootstrapping the terminal
33-
-- window. See: https://github.com/igorlfs/nvim-dap-view/issues/18
34-
if state.last_active_adapter and state.last_active_adapter ~= adapter then
30+
if state.last_active_adapter ~= adapter then
3531
term.delete_term_buf()
3632
end
3733
state.last_active_adapter = adapter

0 commit comments

Comments
 (0)