|
|
@ -41,8 +41,7 @@ impl Handler for NeovimHandler {
|
|
|
|
.unwrap_or_explained_panic("Could not parse event from neovim");
|
|
|
|
.unwrap_or_explained_panic("Could not parse event from neovim");
|
|
|
|
|
|
|
|
|
|
|
|
for parsed_event in parsed_events {
|
|
|
|
for parsed_event in parsed_events {
|
|
|
|
EVENT_AGGREGATOR
|
|
|
|
EVENT_AGGREGATOR.send(EditorCommand::NeovimRedrawEvent(parsed_event));
|
|
|
|
.send(EditorCommand::NeovimRedrawEvent(parsed_event));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -51,13 +50,11 @@ impl Handler for NeovimHandler {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
|
|
#[cfg(windows)]
|
|
|
|
"neovide.register_right_click" => {
|
|
|
|
"neovide.register_right_click" => {
|
|
|
|
EVENT_AGGREGATOR
|
|
|
|
EVENT_AGGREGATOR.send(UiCommand::Parallel(ParallelCommand::RegisterRightClick));
|
|
|
|
.send(UiCommand::Parallel(ParallelCommand::RegisterRightClick));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
|
|
#[cfg(windows)]
|
|
|
|
"neovide.unregister_right_click" => {
|
|
|
|
"neovide.unregister_right_click" => {
|
|
|
|
EVENT_AGGREGATOR
|
|
|
|
EVENT_AGGREGATOR.send(UiCommand::Parallel(ParallelCommand::UnregisterRightClick));
|
|
|
|
.send(UiCommand::Parallel(ParallelCommand::UnregisterRightClick));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_ => {}
|
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|