aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/threads.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/threads.rs')
-rw-r--r--src/state/threads.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/threads.rs b/src/state/threads.rs
index 6ffd7e7..b6fddbb 100644
--- a/src/state/threads.rs
+++ b/src/state/threads.rs
@@ -68,7 +68,7 @@ impl<'d, 'q> Threads {
draw(&self, out);
}
- pub fn tick<W: Write>(mut self, out: &mut W, key: Key) -> State {
+ pub fn tick<W: Write>(&mut self, out: &mut W, key: Key) -> Option<State> {
match key {
Key::Char('j') => self.i += 1,
Key::Char('k') => self.i =
@@ -87,7 +87,7 @@ impl<'d, 'q> Threads {
self.i = self.i.rem_euclid(self.threads.len());
}
draw(&self, out);
- State::Threads(self)
+ None
}
}