Skip to content

Commit 3085423

Browse files
committed
fix: don't update breakpoints view if current_section is not breakpoints
1 parent fba18ea commit 3085423

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/dap-view/events.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ dap.listeners.before.initialize[SUBSCRIPTION_ID] = function()
1212
end
1313

1414
dap.listeners.after.setBreakpoints[SUBSCRIPTION_ID] = function()
15-
breakpoints.show()
15+
if state.current_section == "breakpoints" then
16+
breakpoints.show()
17+
end
1618
end
1719

1820
dap.listeners.after.launch[SUBSCRIPTION_ID] = function()

0 commit comments

Comments
 (0)