summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
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);
}
}