From 5f4022cb8aa2fb078617e1c166e0e79b80a25d13 Mon Sep 17 00:00:00 2001 From: pml68 Date: Thu, 24 Jul 2025 19:12:56 +0200 Subject: feat: make "Copy Code" button appear on hover over the code --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index aaddf1f..67d564d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,7 @@ mod options; mod panes; mod types; mod values; +#[allow(dead_code)] mod widget; use std::io; @@ -209,7 +210,7 @@ impl IcedBuilder { } Message::SwitchPane(pane) => self.designer_page = pane, Message::EditorAction(action) => { - if matches!(action, text_editor::Action::Scroll { .. }) { + if !action.is_edit() { self.editor_content.perform(action); } } -- cgit v1.2.3