summaryrefslogtreecommitdiff
path: root/helix-term/src/commands/dap.rs
diff options
context:
space:
mode:
authorA-Walrus2023-05-13 15:44:25 +0000
committerGitHub2023-05-13 15:44:25 +0000
commitd5fe08ddb8bf1408a1a92d39a63b51cd16d83255 (patch)
tree2f0d90571d2d8023c5e92db9bcf6d9853e7267c0 /helix-term/src/commands/dap.rs
parent06d7f5d100fdcc99f4cdfda879898b2d488d8d7c (diff)
Replace DAP vars popup, instead of adding new (#7034)
Diffstat (limited to 'helix-term/src/commands/dap.rs')
-rw-r--r--helix-term/src/commands/dap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index 8efdc9cf..84794bed 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -580,7 +580,7 @@ pub fn dap_variables(cx: &mut Context) {
let contents = Text::from(tui::text::Text::from(variables));
let popup = Popup::new("dap-variables", contents);
- cx.push_layer(Box::new(popup));
+ cx.replace_or_push_layer("dap-variables", popup);
}
pub fn dap_terminate(cx: &mut Context) {