diff options
author | Blaž Hrastnik | 2022-09-07 07:42:33 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-09-07 07:42:33 +0000 |
commit | a123fb60572720a5fd0817b194f4d34534f87b4e (patch) | |
tree | c5aef0de1f64bc399206e2a5ee0f2fdebd427b4d /helix-term/src/ui/editor.rs | |
parent | fe37a66046b16eaf7829606f7b90c18bd73fae3e (diff) |
Remove LspNotDefined, instead return an Option<>
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r-- | helix-term/src/ui/editor.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |