From a123fb60572720a5fd0817b194f4d34534f87b4e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 7 Sep 2022 16:42:33 +0900 Subject: Remove LspNotDefined, instead return an Option<> --- helix-term/src/ui/editor.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 64e95e33..7cb29c3b 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1316,6 +1316,7 @@ impl Component for EditorView { if cx.editor.should_close() { return EventResult::Ignored(None); } + // if the focused view still exists and wasn't closed if cx.editor.tree.contains(focus) { let config = cx.editor.config(); -- cgit v1.2.3-70-g09d2