From 68ec25d38a9d1431645aae6192983997cdb3df65 Mon Sep 17 00:00:00 2001 From: Huang-Huang Bao Date: Sun, 17 Sep 2023 11:50:37 +0800 Subject: [PATCH] Fix building editor-libcosmic with vi feature The vi editor has no update_theme method, fix it with feature gate. --- examples/editor-libcosmic/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/editor-libcosmic/src/main.rs b/examples/editor-libcosmic/src/main.rs index c84efe2..84f27d2 100644 --- a/examples/editor-libcosmic/src/main.rs +++ b/examples/editor-libcosmic/src/main.rs @@ -269,6 +269,7 @@ impl Application for Window { let mut editor = self.editor.lock().unwrap(); + #[cfg(not(feature = "vi"))] // Update the syntax color theme match theme { "Light" => editor.update_theme("base16-ocean.light"),