From 4ab94b3cae38cbeca85dc62cfba899ec9f966e1c Mon Sep 17 00:00:00 2001 From: keith Date: Fri, 27 Dec 2019 23:59:07 -0800 Subject: [PATCH] support cell percentage configuration --- src/editor/cursor.rs | 10 ++++++++-- src/events.rs | 23 +++++++++++++++++++++++ src/renderer/cursor_renderer.rs | 17 +++++++++++------ 3 files changed, 42 insertions(+), 8 deletions(-) diff --git a/src/editor/cursor.rs b/src/editor/cursor.rs index 37b4527..6295d12 100644 --- a/src/editor/cursor.rs +++ b/src/editor/cursor.rs @@ -26,13 +26,16 @@ pub struct CursorMode { #[new(default)] pub shape: Option, #[new(default)] - pub style_id: Option + pub style_id: Option, + #[new(default)] + pub cell_percentage: Option } #[derive(Clone)] pub struct Cursor { pub position: (u64, u64), pub shape: CursorShape, + pub cell_percentage: Option, pub style: Option