From 8839eb0af47b99511956d81a6dbb32e948d2076c Mon Sep 17 00:00:00 2001
From: A-Walrus
Date: Mon, 17 Apr 2023 23:36:04 +0300
Subject: Fix unwrap bug in DAP (#6786)

---
 helix-view/src/handlers/dap.rs | 1 +
 1 file changed, 1 insertion(+)

(limited to 'helix-view')

diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs
index 107c29be..3da01494 100644
--- a/helix-view/src/handlers/dap.rs
+++ b/helix-view/src/handlers/dap.rs
@@ -321,6 +321,7 @@ impl Editor {
                             }
                         }
                         None => {
+                            self.debugger = None;
                             self.set_status(
                                 "Terminated debugging session and disconnected debugger.",
                             );
-- 
cgit v1.2.3-70-g09d2