From b7f9c8ba2e1058994983ea47eae30c55d0526271 Mon Sep 17 00:00:00 2001 From: mars Date: Wed, 12 Apr 2023 15:46:34 -0400 Subject: [PATCH] pub mode-related types --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index e7450c9..8311ea1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,23 +47,23 @@ pub struct Cursor { } #[derive(Clone, Debug, Default)] -struct NormalState { +pub struct NormalState { pub error: Option, } #[derive(Clone, Debug, Default)] -struct CommandState { +pub struct CommandState { pub buf: String, pub cursor: usize, } #[derive(Copy, Clone, Debug)] -struct InsertState { +pub struct InsertState { append: bool, } #[derive(Clone, Debug)] -enum Mode { +pub enum Mode { Normal(NormalState), Command(CommandState), Visual,