From 3b6abd920ea92329ebcf888c3bb50470675c4152 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Wed, 15 Jul 2026 06:04:19 +0700 Subject: [PATCH] feat: Tambah field pending_clipboard_copy di MiscState --- src/app/state/misc.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/state/misc.rs b/src/app/state/misc.rs index 9db4a3b..e5047a1 100644 --- a/src/app/state/misc.rs +++ b/src/app/state/misc.rs @@ -400,6 +400,7 @@ pub struct MiscState { pub tick_count: u64, pub todo_content: String, pub lesson_running: bool, + pub pending_clipboard_copy: Option, } impl MiscState { @@ -419,6 +420,7 @@ impl MiscState { tick_count: 0, todo_content: String::new(), lesson_running: false, + pending_clipboard_copy: None, } } @@ -493,4 +495,10 @@ mod tests { assert_eq!(input.buffer, "/model"); assert_eq!(input.cursor, "/model".len()); } + + #[test] + fn misc_state_starts_with_no_pending_clipboard_copy() { + let misc = MiscState::new(); + assert!(misc.pending_clipboard_copy.is_none()); + } }