Fix building editor-libcosmic with vi feature

The vi editor has no update_theme method, fix it with feature gate.
This commit is contained in:
Huang-Huang Bao 2023-09-17 11:50:37 +08:00
parent 1eab951e27
commit 68ec25d38a
No known key found for this signature in database
GPG key ID: 33C3271387A13D1B

View file

@ -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"),