Add noop for mouse actions on plugins

* Comments the `unimplemented!` macro out, in favor of a noop
  The macro is still there for easy greppability.
  It is still unimplemented, but zellij doesn't need to panic once
  a plugin does get a scroll event.
This commit is contained in:
a-kenji 2021-07-20 15:08:38 +02:00
parent 55bc1feee1
commit 697ba09c71

View file

@ -196,13 +196,13 @@ impl Pane for PluginPane {
self.position_and_size.y -= count; self.position_and_size.y -= count;
} }
fn scroll_up(&mut self, _count: usize) { fn scroll_up(&mut self, _count: usize) {
unimplemented!() //unimplemented!()
} }
fn scroll_down(&mut self, _count: usize) { fn scroll_down(&mut self, _count: usize) {
unimplemented!() //unimplemented!()
} }
fn clear_scroll(&mut self) { fn clear_scroll(&mut self) {
unimplemented!() //unimplemented!()
} }
// FIXME: This need to be reevaluated and deleted if possible. // FIXME: This need to be reevaluated and deleted if possible.
// `max` doesn't make sense when things are fixed... // `max` doesn't make sense when things are fixed...