Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/commands/typed.rs')
-rw-r--r--helix-view/src/commands/typed.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/commands/typed.rs b/helix-view/src/commands/typed.rs
index 3e8a8c29..c5e78d97 100644
--- a/helix-view/src/commands/typed.rs
+++ b/helix-view/src/commands/typed.rs
@@ -994,6 +994,7 @@ fn set_option(
};
let config = serde_json::from_value(config).map_err(field_error)?;
+ #[cfg(feature = "tokio")]
cx.editor
.config_events
.0
@@ -1121,6 +1122,7 @@ fn refresh_config(
_args: &[Cow<str>],
_event: PromptEvent,
) -> anyhow::Result<()> {
+ #[cfg(feature = "tokio")]
cx.editor.config_events.0.send(ConfigEvent::Refresh)?;
Ok(())
}