diff --git a/src/main.rs b/src/main.rs index 612c838..bf8f87c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,8 +98,8 @@ impl Nuudel { self.cursory += 1; self.cursory = self.cursory.clamp(0, terminal::size()?.1-1); }, - KeyCode::Char(_) => { - self.buffer.lines[usize::try_from(self.cursory).unwrap()].insert(self.cursorx.into(), 'A'); + KeyCode::Char(char) => { + self.buffer.lines[usize::try_from(self.cursory).unwrap()].insert(self.cursorx.into(), char); self.cursorx += 1; },