From c0dbfb0eca86f187178f8adfad97c035332f90f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Macio=C5=82ek?= Date: Thu, 27 Jun 2024 23:10:38 +0200 Subject: [PATCH] selection p6 --- src/app.rs | 4 ++-- src/ui.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index 69a9273..75f0ae8 100644 --- a/src/app.rs +++ b/src/app.rs @@ -24,6 +24,8 @@ pub struct Position { #[derive(Debug)] pub struct App { + prompt_cursor_position: Position, + quit_times: i8, pub running: bool, pub content: Vec, pub cursor_position: Position, @@ -31,10 +33,8 @@ pub struct App { pub opened_filename: String, pub window_size: Rect, pub dirty: bool, - quit_times: i8, pub is_prompt: bool, pub prompt: String, - prompt_cursor_position: Position, pub status: String, pub line_numbers_width: usize, pub is_selecting: bool, diff --git a/src/ui.rs b/src/ui.rs index 8d608f7..1613419 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -16,7 +16,6 @@ pub fn render(app: &mut App, frame: &mut Frame) { let pos = app.get_cursor_position(); - // TODO: remove highlight if select // TODO: remove highlight if select let content_lines: Vec = app .content