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:
parent
1eab951e27
commit
68ec25d38a
1 changed files with 1 additions and 0 deletions
|
|
@ -269,6 +269,7 @@ impl Application for Window {
|
||||||
|
|
||||||
let mut editor = self.editor.lock().unwrap();
|
let mut editor = self.editor.lock().unwrap();
|
||||||
|
|
||||||
|
#[cfg(not(feature = "vi"))]
|
||||||
// Update the syntax color theme
|
// Update the syntax color theme
|
||||||
match theme {
|
match theme {
|
||||||
"Light" => editor.update_theme("base16-ocean.light"),
|
"Light" => editor.update_theme("base16-ocean.light"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue