From 5e5583897b5e5271c1aeba402ccea68bfbd07dd5 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 13 Aug 2024 02:47:21 +0300 Subject: [PATCH] Editing starts to b real --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; },