Diffstat (limited to 'src/ui/input.rs')
| -rw-r--r-- | src/ui/input.rs | 7 |
|
1 file changed, 7 insertions(+) diff --git a/src/ui/input.rs b/src/ui/input.rs index 6a20fa3..b6bd9b1 100644 --- a/src/ui/input.rs +++ b/src/ui/input.rs @@ -21,6 +21,13 @@ cx: 0, } } pub fn change_mode(&mut self, new_mode: InputMode) { self.mode = new_mode; self.value.clear(); self.reset_cursor(); } pub fn move_cursor_left(&mut self) { let cursor_moved_left = self.cx.saturating_sub(1); self.cx = self.clamp_cursor(cursor_moved_left);
